Mercurial > code > home > repos > streamed-graph
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 |
rev | line source |
---|---|
0 | 1 import path from "path"; |
2 import webpack from 'webpack'; | |
3 | |
4 const config: webpack.Configuration = { | |
5 mode: "production", | |
6 entry: './src/streamed-graph.ts', | |
7 output: { | |
8 filename: 'streamed-graph.bundle.js', | |
9 path: path.resolve(__dirname, 'build') | |
10 }, | |
11 module: { | |
12 rules: [ | |
13 { test: /\.ts$/, use: 'ts-loader', exclude: /node_modules/ }, | |
14 ] | |
15 } | |
16 }; | |
17 | |
18 export default config; |