shakacode / shakacode/bootstrap-loader
yarn build extractStyles
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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