aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorEleanor Eng <eleanoreng@eleanors-mbp.devices.brown.edu>2019-02-25 18:58:45 -0500
committerEleanor Eng <eleanoreng@eleanors-mbp.devices.brown.edu>2019-02-25 18:58:45 -0500
commit8d3ebd1eb393baf37932d021d6da79d46ef96a03 (patch)
treef6e0ef0cce9041525bcd5f6e0a37eee9226a9896 /webpack.config.js
parentfa2be8b245e4ed69b771e70a98e65176785751eb (diff)
parent292ff1a8d75f8b15f9388d2c577e09a13836d5dc (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into contextMenu
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js15
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']