annotate webpack.config.ts @ 3:a7ba8627a7b6

still trying to make imports work. add other files too
author drewp@bigasterisk.com
date Wed, 04 Dec 2019 00:09:15 -0800
parents a9bc14e22e36
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
drewp@localhost
parents:
diff changeset
1 import path from "path";
drewp@localhost
parents:
diff changeset
2 import webpack from 'webpack';
drewp@localhost
parents:
diff changeset
3
drewp@localhost
parents:
diff changeset
4 const config: webpack.Configuration = {
drewp@localhost
parents:
diff changeset
5 mode: "production",
drewp@localhost
parents:
diff changeset
6 entry: './src/streamed-graph.ts',
drewp@localhost
parents:
diff changeset
7 output: {
drewp@localhost
parents:
diff changeset
8 filename: 'streamed-graph.bundle.js',
drewp@localhost
parents:
diff changeset
9 path: path.resolve(__dirname, 'build')
drewp@localhost
parents:
diff changeset
10 },
drewp@localhost
parents:
diff changeset
11 module: {
drewp@localhost
parents:
diff changeset
12 rules: [
drewp@localhost
parents:
diff changeset
13 { test: /\.ts$/, use: 'ts-loader', exclude: /node_modules/ },
drewp@localhost
parents:
diff changeset
14 ]
drewp@localhost
parents:
diff changeset
15 }
drewp@localhost
parents:
diff changeset
16 };
drewp@localhost
parents:
diff changeset
17
drewp@localhost
parents:
diff changeset
18 export default config;