vscode-live-sass-compiler icon indicating copy to clipboard operation
vscode-live-sass-compiler copied to clipboard

Exclude List not working

Open shaunchander opened this issue 7 years ago • 13 comments

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 Screenshot from Gyazo. 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: Screenshot from Gyazo. Here's the following settings that I am using (these are workspace specific settings): Screenshot from Gyazo.

I've tried using the includeList setting, but to no avail! Any help is appreciated, thanks!

shaunchander avatar Feb 24 '18 21:02 shaunchander

Update: I've fixed the issue myself, I changed "settings": { "liveSassCompile.settings.excludeList": [ "**/node_modules/**", ".vscode/**", "/sass/bootstrap/**", ], to now include **/sass/boostrap/**

shaunchander avatar Feb 25 '18 00:02 shaunchander

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

smokerigni avatar Nov 08 '18 08:11 smokerigni

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.

paj84 avatar Nov 19 '18 15:11 paj84

Same issue - exclude setting does not work.

arzoo1 avatar Mar 06 '19 15:03 arzoo1

~~@shaunchander @arzoo1 @smokerigni @paj84 I found a temporary fix: First, use includeItems instead of excludeList. Second, use an absolute path.~~

binyamin avatar Nov 19 '19 18:11 binyamin

never mind, I got the same problem. But, if your file has an error it won't compile, so that's good.

binyamin avatar Nov 19 '19 18:11 binyamin

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

Emrikcah avatar Nov 20 '19 11:11 Emrikcah

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

glenn2223 avatar Mar 19 '20 01:03 glenn2223

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!

sergeod9 avatar Jun 15 '20 19:06 sergeod9

@glenn2223 I think the project is not maintained. Can we have a parallel option, kind of a new extension?

typedashutosh avatar May 02 '21 12:05 typedashutosh

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 avatar May 02 '21 20:05 glenn2223

@glenn2223 Thanks for your support!

typedashutosh avatar May 03 '21 05:05 typedashutosh

@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).

binyamin avatar May 03 '21 18:05 binyamin