Path to local CSS files
Thanks for the extension, I suggest a couple of improvements for working with local css files:
-
Add the ability to specify several files at once using a mask, for example, as in VSCode:
"css.styleSheets": [ "/node_modules/some_library/**/*.css", "/styles/**/*.css" ]Alternatively, you can use a regular expression or the "
.ignore" style. This will help in cases where there are moreCSSfiles with global styles. -
Add the ability to specify files relative to the currently open file, for example, using a variable in the path:
"css.styleSheets": [ "${fileDirname}/styles/*.css", "${fileDirname}/*.component.css" ]This will be useful for Angular applications in which the
CSSfile is relative to theHTMLfile or for any similar architecture of relative location.
I agree, I've been using this extension for long since some days ago that I had to uninstall it becaose it now returns several errors just for local files (Angular project). The options css.styleSheets should support remote and local files, optionally with wildcard support too. Consider that there might be Angular projects with scss files only too.
${fileBasenameNoExtension} is implemented in https://github.com/ecmel/vscode-html-css/commit/dd1b86d6f3f17135a5532a0f556790bac9f3b028
how to properly implement it in django
{ "css.styleSheets": [ "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css", "/style.css", "style.css", "${fileBasenameNoExtension}.css" ] }
using this only works with bootstrap
Implemented in 1.14.0