diff options
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'] |