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

excludeList not working

Open pit07 opened this issue 5 years ago • 3 comments

Hi everybody! I'm working on a website and its admin. Problem : when i save my SCSS, Live Sass Compiler compil ALL my SCSS files, in all folders (so, Admin to...)... and there are a lot...

So, i want to use the "liveSassCompile.settings.excludeList", but, i think i made an error...

My settings.json:

{ "git.ignoreMissingGitWarning": true, "workspace-manager.includeGlobPattern": [ "D:\\_CLIENTS\\_WORKPLACE\\" ], "liveSassCompile.settings.formats":[ // This is Default. { "format": "compressed", "extensionName": ".min.css", "savePath": null }, ], "liveSassCompile.settings.excludeList": [ "**/node_modules/**", ".vscode/**", "vendor/", "admin/", ], "liveSassCompile.settings.generateMap: false" }

Thanks a lot !

pit07 avatar Apr 03 '20 13:04 pit07

Hi @pit07,

You need to add ** after vendor/ and admin/, turning them into vendor/** and admin/**

At the moment you're telling it what folders to check but not what files to exclude. The ** excludes all files in all sub-folders.

Hope this helps.


If this resolves your issue then please remember to close this issue

glenn2223 avatar Apr 04 '20 00:04 glenn2223

"liveSassCompile.settings.excludeList": [
        "public_html/scss/fa/**",        
    ],

will not compile anything from public_html/scss/fa/ folder, but when saving any file in the mentioned folder, it gets compiled. is it desired functionality? EDIT: this fork https://github.com/glenn2223/vscode-live-sass-compiler seems to implement exclude list properly

sKopheK avatar Jan 17 '21 19:01 sKopheK

How do we use the excludeList to exclude only ONE specific file? Everything documented shows only how to exclude entire folders or entire folder except for one or two files. I just want to exclude one specific file.

Also, is the root the project root, or the actual root folder of the system? Again, this is not very clear from the documentation.

oldmansutton avatar Oct 21 '21 16:10 oldmansutton