Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Exclude List not working #47

Open
shaunchander opened this issue Feb 24, 2018 · 13 comments
Open

Exclude List not working #47

shaunchander opened this issue Feb 24, 2018 · 13 comments

Comments

@shaunchander
Copy link

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
Copy link
Author

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

@smokerigni
Copy link

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

@paj84
Copy link

paj84 commented Nov 19, 2018

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.

@arzoo1
Copy link

arzoo1 commented Mar 6, 2019

Same issue - exclude setting does not work.

@binyamin
Copy link

binyamin commented Nov 19, 2019

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

@binyamin
Copy link

binyamin commented Nov 19, 2019

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

@Emrikcah
Copy link

Emrikcah commented Nov 20, 2019

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

@glenn2223
Copy link

glenn2223 commented Mar 19, 2020

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

@sergeod9
Copy link

sergeod9 commented Jun 15, 2020

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!

@typedashutosh
Copy link

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

@glenn2223
Copy link

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

@typedashutosh
Copy link

@glenn2223 Thanks for your support!

@binyamin
Copy link

binyamin commented May 3, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants