shakacode / shakacode/bootstrap-loader

yarn build extractStyles

Open
#398 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the production configuration shown in the issue and compare it with the examples folder, then inspect the project's dependency tree and the mini-css-extract-plugin guidance. Done means the production build completes with extractStyles enabled without the reported missing-plugin error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.