bootstrap-loader icon indicating copy to clipboard operation
bootstrap-loader copied to clipboard

yarn build extractStyles

Open jw-miaem opened this issue 3 years ago • 1 comments

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 avatar Jun 09 '21 16:06 jw-miaem

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

jw-miaem avatar Jun 10 '21 10:06 jw-miaem