1 const path
= require('path');
2 const webpack
= require('webpack');
5 entry
: './src/index.ts',
6 devtool
: 'inline-source-map',
10 disableHostCheck
: true,
13 { from: /^_\/.*$/, to
: '/index.html' }
23 exclude
: /node_modules/,
28 extensions
: [ '.tsx', '.ts', '.js' ],
31 filename
: 'bundle.js',
32 path
: path
.resolve(__dirname
, 'dist'),
36 new webpack
.ProvidePlugin({
39 new webpack
.EnvironmentPlugin(['API_URL', 'DEBUG_MODE'])