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

Version 2.1.3 Less Building Nested files #1125

Closed
mattfraley1 opened this issue May 27, 2014 · 3 comments
Closed

Version 2.1.3 Less Building Nested files #1125

mattfraley1 opened this issue May 27, 2014 · 3 comments

Comments

@mattfraley1
Copy link

In the 2.1 I was able to nest less files under the "main" less file. Then when I made a change to a nested file and saved it, it would not build the nested less file but instead would build the "main" less file. This behavior is exactly what I needed. Due to other issues I switched to the nightly build last night. Now when changing nested files, it builds both the nested file and the main less file. Then I have to delete the "extra" css file. It would be nice to have the prior compilation behavior back.

@am11
Copy link
Contributor

am11 commented May 28, 2014

That was actually broken in v2.1. See #1082.

@SLaks
Copy link
Collaborator

SLaks commented May 28, 2014

Instead, you should change your imported files start with an underscore.
This will prevent WE from compiling.

WE will automatically recompile files that import a changed file, regardless of nesting.

@am11
Copy link
Contributor

am11 commented May 31, 2014

@madskristensen, this can be closed as by design.

The nested files will always compile.

To skip the file from compilation, rename it to start with underscore _.

Otherwise, this is the duplicate of #589.

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

4 participants