Open vladshcherbin opened 4 years ago
Good idea, PR welcome!
Note however, you can use scss({ processor: css => processCss(css) })
I think @vladshcherbin means something else.
Here is an example. I have a js file importing a SCSS file like this
// index.js
import './index.scss';
...
// index.scss
app {}
After translating, I expect the files in dist/
would look like
// index.js
import './index.css';
...
and
// index.css
app {}
Notice that the output CSS file name is index.css
rather than index.scss.js
. The content of the CSS file should be in plain CSS rather than anything in JS format.
👋 Hey, it would be nice to be able to just transform scss to css. It's needed when you have another rollup plugins which expect plain
css
contents.With current
output: false
it transforms it to js module withexport default
. It can beoutput: 'emit'
or smth.