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',
|
|
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 },
|
7
|
18 extensions: ['.ts', '.js', '.json']
|
0
|
19 },
|
|
20 module: {
|
|
21 rules: [
|
|
22 { test: /\.ts$/, use: 'ts-loader', exclude: /node_modules/ },
|
|
23 { test: /\.css$/i, use: ['file-loader'] },
|
7
|
24 ]
|
0
|
25 },
|
|
26 devServer: {
|
|
27 port: 8082,
|
|
28 hot: false,
|
|
29 liveReload: true, // doesn't work
|
|
30 overlay: true,
|
|
31 watchContentBase: true,
|
|
32 }
|
|
33 };
|
|
34
|
|
35 export default config; |