vscode-live-sass-compiler
vscode-live-sass-compiler copied to clipboard
excludeList not working
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 !
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
"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
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.