thgh / rollup-plugin-scss

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

Save sourceMap if returned from scss #66

Closed astappiev closed 3 years ago

astappiev commented 3 years ago

This change allows saving source map near compiled .css file.

To make it work, the compiler should return not empty map (by default it is empty). To make it not empty, we should pass sourceMap and outFile options to sass.renderSync method.

The outFile is added automatically in this PR, and sourceMap should be given by a user, like:

scss({
  sourceMap: true,
})
astappiev commented 3 years ago

Done

christian-beckmann commented 3 years ago

When does this go online/released?