diff options
author | laurawilsonri <laura_wilson@brown.edu> | 2019-02-24 14:37:07 -0500 |
---|---|---|
committer | laurawilsonri <laura_wilson@brown.edu> | 2019-02-24 14:37:07 -0500 |
commit | f7b46167a7fd5d7ecf560dbd72e7d3295ba6c0c9 (patch) | |
tree | cc96c12c49e6c03c98b0f0e6f642e0902948283b /webpack.config.js | |
parent | 3ad38f0445178bdfe025e4f6da60f68f03876f56 (diff) | |
parent | d9d55e422826da1fe87aa7973c92e54bc0c99f02 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into improveText
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js index 478c900b2..2a29844e8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,15 +4,22 @@ const CopyWebpackPlugin = require("copy-webpack-plugin"); module.exports = { mode: 'development', - entry: ["./src/client/views/Main.tsx", 'webpack-hot-middleware/client?reload=true'], + entry: { + bundle: ["./src/client/views/Main.tsx", 'webpack-hot-middleware/client?reload=true'], + viewer: ["./src/debug/Viewer.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'] |