Mercurial > code > home > repos > streamed-graph
annotate webpack-dev.config.ts @ 4:a668a774b162
back up, slowly turn on code again until ts breaks
author | drewp@bigasterisk.com |
---|---|
date | Wed, 04 Dec 2019 00:23:28 -0800 |
parents | a7ba8627a7b6 |
children | daf08d794660 |
rev | line source |
---|---|
0 | 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', | |
4
a668a774b162
back up, slowly turn on code again until ts breaks
drewp@bigasterisk.com
parents:
3
diff
changeset
|
8 // './src/streamed_graph_client.ts', |
3
a7ba8627a7b6
still trying to make imports work. add other files too
drewp@bigasterisk.com
parents:
0
diff
changeset
|
9 |
0 | 10 './src/streamed-graph.css' // doesn't emit anything |
11 ], | |
12 output: { | |
13 filename: 'streamed-graph.bundle.js', | |
14 path: path.resolve(__dirname, 'build') | |
15 }, | |
16 resolve: { | |
17 alias: { | |
18 'webpack-plugin-serve/client': './node_modules/webpack-plugin-serve/client.js', | |
19 }, | |
20 }, | |
21 module: { | |
22 rules: [ | |
23 { test: /\.ts$/, use: 'ts-loader', exclude: /node_modules/ }, | |
24 { test: /\.css$/i, use: ['file-loader'] }, | |
25 ], | |
26 | |
27 }, | |
28 devServer: { | |
29 port: 8082, | |
30 hot: false, | |
31 liveReload: true, // doesn't work | |
32 overlay: true, | |
33 watchContentBase: true, | |
34 // proxy: { | |
35 // '/rdf': { | |
36 // target: 'https://bigasterisk.com/', | |
37 // //pathRewrite: {'^/api' : ''} | |
38 // } | |
39 // }, | |
40 } | |
41 }; | |
42 | |
43 export default config; |