Skip to content

Commit ca35e40

Browse files
authored
Split chunks for playground (#2289)
1 parent 343efe7 commit ca35e40

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

packages/playground/webpack.config.dev.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ module.exports = {
99
entry: [
1010
"./src/index"
1111
],
12+
optimization: {
13+
splitChunks: {
14+
chunks: 'all'
15+
}
16+
},
1217
output: {
1318
path: path.join(__dirname, "build"),
1419
},

packages/playground/webpack.config.dist.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ module.exports = {
88
entry: [
99
"./src/index"
1010
],
11+
optimization: {
12+
splitChunks: {
13+
chunks: 'all'
14+
}
15+
},
1116
output: {
1217
path: path.join(__dirname, "dist"),
1318
},

packages/playground/webpack.config.prod.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
66
module.exports = {
77
mode: "production",
88
entry: "./src/index",
9+
optimization: {
10+
splitChunks: {
11+
chunks: 'all'
12+
}
13+
},
914
output: {
1015
path: path.join(__dirname, "build"),
11-
filename: "bundle.js",
1216
publicPath: process.env.SHOW_NETLIFY_BADGE ? "": "/react-jsonschema-form/"
1317
},
1418
plugins: [

0 commit comments

Comments
 (0)