diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-03-09 16:06:18 -0500 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-03-09 16:06:18 -0500 |
commit | a2b90031fe06701b0ecc7c6fa3b48c933e4d37b8 (patch) | |
tree | 541052a97652ad25b0829685f205ec35d3976743 /webpack.config.js | |
parent | b72ff1323bc76dc244ebe50893aa78064fd836c7 (diff) | |
parent | 09928503be98d605052fba65dcd2f91f9b056f23 (diff) |
fix
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js index 478c900b2..900802d7d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,15 +4,23 @@ 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'], + 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'] |