thgh / rollup-plugin-scss

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

Using postCSS? Are the docs correct? #54

Closed Elvanos closed 3 years ago

Elvanos commented 4 years ago

Is there any additional step to using the postCSS with this plugin? Does someone else need to be installed?

I tried copy-pasting the example code into my rollup config file and I am getting undefined results where my styles are supposed to come out. The whole script works perfectly fine without the postCSS addition, so the issue is most certainly there.

The code I am using in the config file:

 scss({ 
      output: false,
      processor: css => postcss([autoprefixer({ overrideBrowserslist: "Edge 18" })])
    }),
thgh commented 4 years ago

Probably import postcss? @geotrev

thgh commented 3 years ago

Here is an example of postcss: https://github.com/thgh/rollup-plugin-scss/tree/v3#examples