Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require_tree unusable, @import won't cache bust #228

Open
koichirose opened this issue Jan 1, 2015 · 0 comments
Open

Require_tree unusable, @import won't cache bust #228

koichirose opened this issue Jan 1, 2015 · 0 comments

Comments

@koichirose
Copy link

Setup: my environment is currently 'local'.

Requiring tree from application.css is useless since LESS variables are scoped and won't be available in other included LESS files.

So I resorted to an application.css manifest that only requires 'app'.

app.less is the following:
@import "common/variables"
@import "common/common"
@import "home"
@import "users"
etc.

This allows me to have all my LESS variables available everywhere.

Editing "home.less" won't force refresh on the generated 'application.css'.
Removing the @import directive, refreshing the browser, then readding it solves my problem.

Is this a bug?
I couldn't find any other way to have both LESS variables and a working cache busting system. What's the best practice here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant