We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72c8498 commit 9823bc5Copy full SHA for 9823bc5
scripts/build
@@ -1,2 +1,2 @@
1
#!/bin/sh
2
-webpack --config webpack.dist.config.js
+webpack --config webpack.dist.config.js -p
webpack.dist.config.js
@@ -9,6 +9,11 @@ module.exports = {
9
'react-modal.min': './lib/index.js'
10
},
11
12
+ externals: [
13
+ 'react',
14
+ 'react-dom'
15
+ ],
16
+
17
output: {
18
filename: '[name].js',
19
chunkFilename: '[id].chunk.js',
@@ -37,4 +42,4 @@ module.exports = {
37
42
]
38
43
}
39
44
40
-};
45
+};
0 commit comments