thgh / rollup-plugin-scss

Rollup and compile multiple .scss, .sass and .css imports
MIT License
136 stars 46 forks source link

Adding an option to ignore an error from node-sass for empty css sources #9

Closed NoamELB closed 6 years ago

NoamELB commented 7 years ago

When trying to compile bundles without any css source node-sass throws the following error and it stops the rollup build: "No input specified: provide a file name or a source string to process"

To prevent that error when not needed, I added an option called ignoreEmpty which will skip the node-sass process when it is true and the css source it empty.

thgh commented 6 years ago

Thanks for bringing up this issue. The error has been fixed in v0.3.0, am I right?