Mercurial > code > home > repos > streamed-graph
view webpack.config.js @ 22:e90d9021c6a0
add back s-g code; this breaks the build a little. WIP
author | drewp@bigasterisk.com |
---|---|
date | Fri, 13 Dec 2019 01:39:29 -0800 |
parents | 9ec3cbc8791a |
children | 09080dc809ed |
line wrap: on
line source
const path = require("path"); const webpack = require('webpack'); const PnpWebpackPlugin = require('pnp-webpack-plugin'); module.exports = { entry: ['./src/streamed-graph.ts'], output: { filename: 'streamed-graph.bundle.js', path: path.resolve(__dirname, 'build') }, module: { rules: [ { test: /\.ts$/, loader: require.resolve('ts-loader'), options: PnpWebpackPlugin.tsLoaderOptions({ // ... regular options go there ... }) }, { test: /\.css$/i, use: ['file-loader'] }, ] }, devtool: 'source-map', resolve: { plugins: [ PnpWebpackPlugin, ], }, resolveLoader: { plugins: [ PnpWebpackPlugin.moduleLoader(module), ], }, watchOptions: { ignored: /node_modules/, poll: 200 } };