aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-02-10 22:12:04 -0500
committeryipstanley <stanley_yip@brown.edu>2019-02-10 22:12:04 -0500
commit69f0b463a78c82aaf78ceb6a5162431424452311 (patch)
treea54c7129f36d307420422b3babfa6da4d85db67e /webpack.config.js
parent2e930b98726a09e597106d43a6763dd36d038771 (diff)
parent099c5823f05285fc5086c5a433658cf06dc4a04b (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into server_implementation
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 1a7c9286e..478c900b2 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -3,9 +3,8 @@ var webpack = require('webpack');
const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = {
- devtool: 'eval',
mode: 'development',
- entry: "./src/Main.tsx",
+ entry: ["./src/client/views/Main.tsx", 'webpack-hot-middleware/client?reload=true'],
devtool: "source-map",
node: {
fs: 'empty',
@@ -51,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,