ritwickdey / vscode-live-sass-compiler

Compile Sass or Scss file to CSS at realtime with live browser reload feature.
https://ritwickdey.github.io/vscode-live-sass-compiler/
MIT License
660 stars 168 forks source link

[Feature Request] add option to add a file header to compiled css file #544

Closed KraXen72 closed 2 years ago

KraXen72 commented 2 years ago

add a setting to prefix the compiled css file with a set header. useful for the mpl licence (mozilla public licence), where you have to have a file header in each file and also if you are making a userstyle, which requires a header. basically after compiling the file it would prepend it with your set header. (preset/workspace specific)

glenn2223 commented 2 years ago

This extension is no longer maintained, I have a fork (ref #486) which I'm maintaining.

In that I use sass/dart-sass. It's that compiler that handles the compression, so it may be worth raising an issue there. Then you can see if they are willing to adjust the compression code to check for heading CSS comments and then keep them in when you're using the compressed option

KraXen72 commented 2 years ago

ok thanks. i set up my own watcher script with chokidar to add the header myself. ill switch to the new extension