Giter Club home page Giter Club logo

Comments (2)

metaskills avatar metaskills commented on July 25, 2024

You have the wrong structure.

  1. Your root file like application.css should be a sprockets manifest only. I say should, but a best practice. It should also just be application.css too.

  2. Your less files that are considered framework files like mixins would just be mixins.less.

I try to go over this in the README by talking about which file extensions to use. I also created a project that serves as an integration test for less-rails-bootstrap. You may find it useful too for doing the proper file structure.

https://github.com/metaskills/less-rails-bootstrap-test

from less-rails.

ksylvest avatar ksylvest commented on July 25, 2024

I am a bit confused about the structure I'm supposed to adopt. I tried doing:

app/assets/stylesheets/application.css

/*
 *= require_self
 *= require_tree .
*/

app/assets/stylesheets/app.css

/*
 *= require app/app
 */

app/assets/stylesheets/app/app.less.css

@import "mixins";
@import "main";

app/assets/stylesheets/app/main.less

#spy { .ninja }

app/assets/stylesheets/app/mixins.less

.ninja { display: none; }

However, again this gave .ninja is undefined. How do I setup the manifest to just compile my less files as they are imported?

from less-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.