Mercurial > code > home > repos > streamed-graph
diff webpack.config.js @ 25:86270a59ae7b
even better configs. ts maps, devserver mode.
author | drewp@bigasterisk.com |
---|---|
date | Fri, 13 Dec 2019 23:52:23 -0800 |
parents | 09080dc809ed |
children | 45ed53428e74 db0e9cbf52e5 |
line wrap: on
line diff
--- a/webpack.config.js Fri Dec 13 23:05:12 2019 -0800 +++ b/webpack.config.js Fri Dec 13 23:52:23 2019 -0800 @@ -6,7 +6,8 @@ entry: ['./src/streamed-graph.ts'], output: { filename: 'streamed-graph.bundle.js', - path: path.resolve(__dirname, 'build') + path: path.resolve(__dirname, 'build'), + publicPath: '/build/' }, module: { rules: [ @@ -35,5 +36,10 @@ watchOptions: { ignored: /node_modules/, poll: 200 + }, + devServer: { + port: 8082, + publicPath: '/build/', + contentBase: __dirname } };