rollup-plugin-scss icon indicating copy to clipboard operation
rollup-plugin-scss copied to clipboard

CSS file not generated when input is empty but when CSS should still be generated due to `prefix` being set

Open kruncher opened this issue 2 years ago • 1 comments

If SCSS source file is empty and prefix is set then the CSS file should still be generated:

const scssConfig = {
  processor: () => postcss(postCssConfig),

  output: "./static-dev/css/main.css",
  outputStyle: "compressed",
  sourceMap: isPreview,
  failOnError: true,

  prefix: `@import "./frontend/styles/base.scss";`,

  includePaths: [
    "./node_modules/prismjs/themes",
  ],
};

kruncher avatar Sep 16 '22 10:09 kruncher

It probably makes sense to always generate the CSS file for repeatability purposes. Could you make a PR?

thgh avatar Sep 19 '22 20:09 thgh