Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: empty chunk
  • Loading branch information
alexander-akait committed Oct 2, 2020
commit eadfaee4b8929c04338c4def99569cca470888bb
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.1.1",
"standard-version": "^9.0.0",
"webpack": "^4.44.1",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.6",
"webpack-dev-server": "^3.7.2"
},
Expand Down
4 changes: 4 additions & 0 deletions test/cases/split-chunks-all/expected/webpack-5/2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body {
background: red;
}

18 changes: 13 additions & 5 deletions test/cases/split-chunks-all/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import webpack from 'webpack';

import Self from '../../../src';

module.exports = {
Expand All @@ -16,11 +18,17 @@ module.exports = {
optimization: {
splitChunks: {
cacheGroups: {
styles: {
type: 'css/mini-extract',
chunks: 'all',
enforce: true,
},
styles:
webpack.version[0] === '4'
? {
chunks: 'all',
enforce: true,
}
: {
type: 'css/mini-extract',
chunks: 'all',
enforce: true,
},
},
},
},
Expand Down