Mercurial > code > home > repos > streamed-graph
comparison webpack-dev.config.ts @ 0:a9bc14e22e36
start
author | drewp@localhost |
---|---|
date | Tue, 03 Dec 2019 21:27:52 -0800 |
parents | |
children | a7ba8627a7b6 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a9bc14e22e36 |
---|---|
1 import path from "path"; | |
2 import webpack from 'webpack'; | |
3 | |
4 const config: webpack.Configuration = { | |
5 mode: "development", | |
6 entry: [ | |
7 './src/streamed-graph.ts', | |
8 './src/streamed-graph.css' // doesn't emit anything | |
9 ], | |
10 output: { | |
11 filename: 'streamed-graph.bundle.js', | |
12 path: path.resolve(__dirname, 'build') | |
13 }, | |
14 resolve: { | |
15 alias: { | |
16 'webpack-plugin-serve/client': './node_modules/webpack-plugin-serve/client.js', | |
17 }, | |
18 }, | |
19 module: { | |
20 rules: [ | |
21 { test: /\.ts$/, use: 'ts-loader', exclude: /node_modules/ }, | |
22 { test: /\.css$/i, use: ['file-loader'] }, | |
23 ], | |
24 | |
25 }, | |
26 devServer: { | |
27 port: 8082, | |
28 hot: false, | |
29 liveReload: true, // doesn't work | |
30 overlay: true, | |
31 watchContentBase: true, | |
32 // proxy: { | |
33 // '/rdf': { | |
34 // target: 'https://bigasterisk.com/', | |
35 // //pathRewrite: {'^/api' : ''} | |
36 // } | |
37 // }, | |
38 } | |
39 }; | |
40 | |
41 export default config; |