aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 73538c2df..478c900b2 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -4,7 +4,7 @@ const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = {
mode: 'development',
- entry: "./src/client/views/Main.tsx",
+ entry: ["./src/client/views/Main.tsx", 'webpack-hot-middleware/client?reload=true'],
devtool: "source-map",
node: {
fs: 'empty',
@@ -50,7 +50,10 @@ module.exports = {
}]
},
plugins: [
- new CopyWebpackPlugin([{ from: "deploy", to: path.join(__dirname, "build") }])
+ new CopyWebpackPlugin([{ from: "deploy", to: path.join(__dirname, "build") }]),
+ new webpack.optimize.OccurrenceOrderPlugin(),
+ new webpack.HotModuleReplacementPlugin(),
+ new webpack.NoEmitOnErrorsPlugin()
],
devServer: {
compress: false,