Mercurial > code > home > repos > streamed-graph
comparison webpack.config.js @ 20:9ec3cbc8791a
build is running, but no tests, and lots of code is disabled
author | drewp@bigasterisk.com |
---|---|
date | Fri, 13 Dec 2019 01:18:00 -0800 |
parents | |
children | 09080dc809ed |
comparison
equal
deleted
inserted
replaced
19:23fa6402c728 | 20:9ec3cbc8791a |
---|---|
1 const path = require("path"); | |
2 const webpack = require('webpack'); | |
3 const PnpWebpackPlugin = require('pnp-webpack-plugin'); | |
4 | |
5 module.exports = { | |
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 { | |
14 test: /\.ts$/, | |
15 loader: require.resolve('ts-loader'), | |
16 options: PnpWebpackPlugin.tsLoaderOptions({ | |
17 // ... regular options go there ... | |
18 }) | |
19 }, | |
20 { test: /\.css$/i, use: ['file-loader'] }, | |
21 ] | |
22 }, | |
23 devtool: 'source-map', | |
24 resolve: { | |
25 plugins: [ | |
26 PnpWebpackPlugin, | |
27 ], | |
28 }, | |
29 resolveLoader: { | |
30 plugins: [ | |
31 PnpWebpackPlugin.moduleLoader(module), | |
32 ], | |
33 }, | |
34 watchOptions: { | |
35 ignored: /node_modules/, | |
36 poll: 200 | |
37 } | |
38 }; |