Skip to content

yarn build extractStyles #398

Description

@jw-miaem

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions