sass / dart-sass

The reference implementation of Sass, written in Dart.
https://sass-lang.com/dart-sass
MIT License
3.87k stars 350 forks source link

CLI Many-to-Many Mode process .css files #2245

Closed mwojslaw closed 3 months ago

mwojslaw commented 3 months ago

It seems like when using command sass input:output to process directories, not only sass files but also css files are being processed.

nex3 commented 3 months ago

That's correct and intentional. Sass supports plain CSS files as an input syntax.

ntkme commented 3 months ago

If you want to stop process .css source files and only use them as dependencies, you can prefix the css filenames with underscore like _filename.css. You can still import as @import "filename";, but filename begin with underscore will not be processed as an entrypoint.