Conflict order of styles
See original GitHub issueGood day, we moved from 2.6 webpack to 4.28.4. It’s a big bump and of course we migrated from old css plugin to new mini-css-extract-plugin. However, it doesn’t bundle css properly anymore, which causes wrong render We have dozens of the next warnings. Seems like something is wrong with optimization of chunks of css
WARNING in chunk bootstrap [mini-css-extract-plugin]
Conflicting order between:
* css ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/components/1.scss
* css ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/components/2.scss
* css ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/components/3.scss
* css ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/components/4.scss
rule is
{
test: /\.s?css$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
'sass-loader'
]
}
optimization looks like
optimization: {
splitChunks: {
name: 'bootstrap',
minChunks: Infinity,
cacheGroups: {
bootstrap: {
filename: '[name].[chunkhash].js'
},
styles: {
name: 'styles',
test: /\.css$/,
chunks: 'all',
enforce: true
}
}
}
},
plugins is
new MiniCssExtractPlugin({ filename: 'style.css' })
if I replace MiniCssExtractPlugin.loader
with style-loader
, it seems to be switched off and error no longer appears, except I have no static/style.css
file generated and all styles become inlined
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:20 (2 by maintainers)
Top Results From Across the Web
11.2.0: Conflict Management Styles - myText CNM
In this section, we will describe five approaches for managing conflict: competing, avoiding, accommodating, compromising, and collaborating. Each of these ...
Read more >Understanding Conflict Handling Styles - UT System
Understanding Conflict Handling Styles · Competing. Value of own issue/goal: High Value of relationship: Low · Accommodating. Value of own issue/goal: Low Value ......
Read more >What's Your Conflict Management Style? - Walden University
Five Major Conflict Management Styles* · Collaborating Style: A combination of being assertive and cooperative, those who collaborate attempt to ...
Read more >5 Most Effective Conflict Management Styles (+When To Use ...
5 conflict management styles · Accommodating · Avoiding · Compromising · Collaborating · Competing · Communication tips for any situation.
Read more >Understanding the 5 Conflict Styles for Different Situations and ...
There are five conflict management styles: avoiding, accommodating, compromising, collaborating, and competing. Some are better than others for ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It is just warning you can ignore this
This is still an issue, why was it closed?