comparison 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
comparison
equal deleted inserted replaced
24:09080dc809ed 25:86270a59ae7b
4 4
5 module.exports = { 5 module.exports = {
6 entry: ['./src/streamed-graph.ts'], 6 entry: ['./src/streamed-graph.ts'],
7 output: { 7 output: {
8 filename: 'streamed-graph.bundle.js', 8 filename: 'streamed-graph.bundle.js',
9 path: path.resolve(__dirname, 'build') 9 path: path.resolve(__dirname, 'build'),
10 publicPath: '/build/'
10 }, 11 },
11 module: { 12 module: {
12 rules: [ 13 rules: [
13 { 14 {
14 test: /\.ts$/, 15 test: /\.ts$/,
33 ], 34 ],
34 }, 35 },
35 watchOptions: { 36 watchOptions: {
36 ignored: /node_modules/, 37 ignored: /node_modules/,
37 poll: 200 38 poll: 200
39 },
40 devServer: {
41 port: 8082,
42 publicPath: '/build/',
43 contentBase: __dirname
38 } 44 }
39 }; 45 };