vscode-live-sass-compiler
vscode-live-sass-compiler copied to clipboard
Exclude List not working
Hey so I'm trying to exclude bootstrap.scss files from being compiled to .css. My style.scss and bootstrap.scss files are located in the same directory (with bootstrap's sass files being in their own sub directory), essentially like this . I'm trying to compile style.scss to a css folder that's outside my sass directory but instead I'm getting all of the .scss files compiled like this:
. Here's the following settings that I am using (these are workspace specific settings):
.
I've tried using the includeList setting, but to no avail! Any help is appreciated, thanks!
Update: I've fixed the issue myself, I changed "settings": { "liveSassCompile.settings.excludeList": [ "**/node_modules/**", ".vscode/**", "/sass/bootstrap/**", ],
to now include **/sass/boostrap/**
For me it wont work, previously i've set the excludeList
to ignore my partials folders, but after a few VSCode updates it seems the plugin ignores the user settings:
"liveSassCompile.settings.excludeList": [ "**/node_modules/**", ".vscode/**", "**/partials/**" ]
Anyone know how to solve this problem? I've removed the plugin, restarted the software and added it again, but it still watches the partials folder and compiles the partial files while edit.
VSCode: September 2018 (version 1.28)
Live Sass Compiler: v3.0.0
I have pretty much the same problem as @smokerigni. I have a project where they haven't named the partials with preceeding underscores, and all files are being compiled even if I exclude all of them.
Neither the include nor the exclude setting seem to work.
Same issue - exclude setting does not work.
~~@shaunchander @arzoo1 @smokerigni @paj84 I found a temporary fix: First, use includeItems
instead of excludeList
. Second, use an absolute path.~~
never mind, I got the same problem. But, if your file has an error it won't compile, so that's good.
I can confirm this works for me. `"liveSassCompile.settings.includeItems": [ "scss/main.scss",
],`
replying to b3u about includeItems. using this method none of the bootstrap files are being compiled
Identified the problem here. LiveSass has been set up to process all files (determined by user settings) when any partial is saved. I've set up a fix that checks to make sure that the saved file isn't excluded. Will send a PR soon.
I have emailed @ritwickdey to let him know about my interest in picking up this project as so many of us still rely on it. First some bug fixes and quick feature additions and then moving to https://github.com/sass/node-sass for a more up to date and quicker libsass handler, once my PR is accepted that is
Excluding items doesn't work, tried all solutions above, when using excludeItems, it seems to work, but whenever I edit an excluded file, it generates a css for that file!
@glenn2223 I think the project is not maintained. Can we have a parallel option, kind of a new extension?
Hey @typedashutosh. You're right, this one isn't maintained - so, there is a new extension!
I have continued to maintain my own fork and it is available on the VS Marketplace here. I have committed many man-hours toward it and, if you want to switch, you can see a migration guide on my FAQ - it's this question here
@glenn2223 Thanks for your support!
@glenn2223 The readme suggests that @ritwickdey would be willing to transfer project to you. I'd suggest contacting him, if you haven't already. I've opened a more expansive issue on your fork (glenn2223/vscode-live-sass-compiler#77).