Closed ghost closed 12 years ago
If you want to include a less file, the file you're including it in must also be a less file. Doing that will cause the rebuild process. Otherwise, no On Sep 10, 2012 5:52 AM, "littlejim84" notifications@github.com wrote:
I have my main app.css file, that has several @import statements to sub LESS files. I use SublimeOnSaveBuild also.
If I edit one of these sub LESS files, is there a way that it could re-build the parant app.css file?
— Reply to this email directly or view it on GitHubhttps://github.com/berfarah/LESS-build-sublime/issues/21.
Yes, they're both LESS files. My app.less
(that compiles to a single app.css
) file, which includes many @import ...
statements. And my sub LESS files, that app.less
is imports. Say I have one of this sub LESS files called sidenav.less
. When I open and save app.less
it builds fine and combines that and it's imported LESS files (including sidenav.less
) into "app.css" just fine. Just wondered that if I opened just sidenav.less
and saved that, the build process could somehow know that app.less
is importing that and so builds app.less
again.
At the moment, if I make a change to sidenav.less
I actually have to save there, then open my main app.less
file, and save that for the whole LESS build process to take place.
Oh, I see what you're saying; and sadly no, because it's be impossible to really know ever file that needs to be recompiled. I'd recommend either requesting a plugin that does this, or asking the dev for the saveonbuild plugin if he's consider adding similar functionality On Sep 10, 2012 9:12 AM, "littlejim84" notifications@github.com wrote:
Yes, they're both LESS files. My app.less (that compiles to a single app.css) file, which includes many @import ... statements. And my sub LESS files, that app.less is imports. Say I have one of this sub LESS files called sidenav.less. When I open and save app.less it builds fine and combines that and it's imported LESS files (including sidenav.less) into "app.css" just fine. Just wondered that if I opened just sidenav.lessand saved that, the build process could somehow know that app.less is importing that and so builds app.less again.
At the moment, if I make a change to sidenav.less I actually have to save there, then open my main app.less file, and save that for the whole LESS build process to take place.
— Reply to this email directly or view it on GitHubhttps://github.com/berfarah/LESS-build-sublime/issues/21#issuecomment-8425867.
Ok. I always wish for the moon! Well, thank you for replying and considering.
I tried adding "-watch" to my build and it looked promising at first since ST2 said it was starting to watch all my files. However, once it listed all of the files dotless.Compiler.exe crashed.
I have my main
app.css
file, that has several@import
statements to sub LESS files. I use SublimeOnSaveBuild also.If I edit one of these sub LESS files, is there a way that it could re-build the parant
app.css
file?