Skip to content

Commit e85235c

Browse files
author
Daniel Karlsson
committed
Fix optimization
1 parent 7ab5484 commit e85235c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

webpack.client.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const config = {
1111
devtool: 'source-map',
1212
context: path.join(__dirname, 'app'),
1313
entry: {
14-
vendor: './vendor.js',
1514
index: './main.js',
1615
},
1716
mode: 'production',
@@ -64,16 +63,18 @@ const config = {
6463
},
6564
]
6665
},
66+
optimization: {
67+
splitChunks: {
68+
chunks: 'all',
69+
name: 'vendor'
70+
}
71+
},
6772
stats: {
6873
colors: true,
6974
hash: false,
7075
modules: false,
7176
children: false,
7277
},
73-
externals: {
74-
React: 'react',
75-
ReactDOM: 'react-dom'
76-
},
7778
resolve: {
7879
alias: {
7980
Containers: path.resolve(__dirname, 'app/containers/'),

0 commit comments

Comments
 (0)