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

Variable not accessible using Require includes. #34

Closed
ronnross opened this issue Jan 23, 2015 · 2 comments
Closed

Variable not accessible using Require includes. #34

ronnross opened this issue Jan 23, 2015 · 2 comments

Comments

@ronnross
Copy link

I'm using Wepack and the Less-loader to package all my JavaScript and CSS in a single file. I'm using the require syntax to import my LESS. For example,
require('base.less');
require('more.less');

Unfortunately, any variables defined in base are not accessible in any file required after it. I would think this would work and be resolved by the loader. Am I mistaken?

@sokra
Copy link
Member

sokra commented Jan 24, 2015

Am I mistaken?

yes, this doesn't work.

you need to @import "base.less" in more.less.

@ronnross
Copy link
Author

ok that clears it up. Thanks

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

2 participants