We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent def981f commit 785141fCopy full SHA for 785141f
config/webpack.dev.js
@@ -8,14 +8,20 @@ const devEntries = [
8
'webpack/hot/only-dev-server',
9
];
10
11
-module.exports = merge(commonConfig, {
12
- devtool: 'eval',
13
- output: {
14
- filename: 'static/js/[name].js',
+module.exports = merge(
+ // these go first, because "react-hot-loader/patch" has to be the first entry
+ {
+ entry: {
15
+ app: devEntries,
16
+ embed: devEntries,
17
+ },
18
},
- entry: {
- app: devEntries,
- embed: devEntries,
19
- },
20
- plugins: [new webpack.HotModuleReplacementPlugin()],
21
-});
+ commonConfig,
+ devtool: 'eval',
22
+ output: {
23
+ filename: 'static/js/[name].js',
24
25
+ plugins: [new webpack.HotModuleReplacementPlugin()],
26
+ }
27
+);
0 commit comments