diff options
author | Andrew Kim <andrewdkim@users.noreply.github.com> | 2019-03-05 18:51:20 -0500 |
---|---|---|
committer | Andrew Kim <andrewdkim@users.noreply.github.com> | 2019-03-05 18:51:20 -0500 |
commit | 7f93e6639e8fee3e3760d13c69d65b343875091a (patch) | |
tree | d29b45310f92a53935177d969ce3c1bee9920c32 /webpack.config.js | |
parent | 9b839a93b98b850aa77087218d4862b97fb24d15 (diff) | |
parent | 2cc5eb6ff512dc6128d25903bcb852f25bcadcca (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into PDFNode
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/webpack.config.js b/webpack.config.js index b630b2a49..815e2b477 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,17 +3,24 @@ var webpack = require('webpack'); const CopyWebpackPlugin = require("copy-webpack-plugin"); module.exports = { - devtool: 'eval', mode: 'development', - entry: "./src/Main.tsx", + entry: { + bundle: ["./src/client/views/Main.tsx", 'webpack-hot-middleware/client?reload=true'], + viewer: ["./src/debug/Viewer.tsx", 'webpack-hot-middleware/client?reload=true'], + test: ["./src/debug/Test.tsx", 'webpack-hot-middleware/client?reload=true'], + }, devtool: "source-map", node: { fs: 'empty', - module: 'empty' + module: 'empty', + dns: 'mock', + tls: 'mock', + net: 'mock' }, output: { - filename: "./bundle.js", - path: path.resolve(__dirname, "build") + filename: "[name].js", + path: path.resolve(__dirname, "build"), + publicPath: "/" }, resolve: { extensions: ['.js', '.ts', '.tsx'] @@ -59,7 +66,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, |