Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kruncher opened this issue Sep 16, 2022 · 1 comment

Comments

@kruncher
Copy link

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",
  ],
};
@thgh
Copy link
Owner

thgh commented Sep 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants