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

yarn build extractStyles #398

Open
jw-miaem opened this issue Jun 9, 2021 · 1 comment
Open

yarn build extractStyles #398

jw-miaem opened this issue Jun 9, 2021 · 1 comment

Comments

@jw-miaem
Copy link

jw-miaem commented Jun 9, 2021

Hi Trying to use extractstyles in production and get this Error

Error: You forgot to add 'mini-css-extract-plugin' plugin (i.e. { plugins: [new MiniCssExtractPlugin()] }), please read https://github.com/webpack-contrib/mini-css-extract-plugin#getting-started

it's an old project trying to upgrade and this is the only blocker currently, any ideas? this is the config, following examples folder but with different dependency tree

production:
    extractStyles: true
    styleLoaders:
      - css-loader
      - sass-loader
      - postcss-loader
@jw-miaem
Copy link
Author

for anyone else stumbling here i'm unable to get the examples to work in isolation so assuming this isn't very well supported anymore

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

1 participant