text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const webpack = require('webpack');
  const FilterWarningsPlugin = require('webpack-filter-warnings-plugin');
  
  module.exports = {
    mode: 'development',
    resolve: {
      extensions: ['.js', '.ts']
    },
    entry: {
      polyfills: './src/polyfills.ts',
      main: './src/app.ts'
    },
    output: {
      path: path.resolve(__dirname, 'dist'),
      filename: '[name].js'
    },
    module: {
      rules: [
        {
          test: /\.ts$/,
          loader: 'awesome-typescript-loader'
        },
        {
          test: /\.ts$/,
          enforce: 'pre',
          loader: 'tslint-loader'
        },
        {
          test: /\.(css|scss)$/,
          exclude: [/node_modules/, /\.global\.scss$/],
          loaders: ['to-string-loader', 'css-loader', 'sass-loader']
        },
        {
          test: /\.html$/,
          loader: 'html-loader'
        }
      ]
    },
    optimization: {
      splitChunks: {
        cacheGroups: {
          vendor: {
            chunks: 'initial',
            name: 'vendor',
            test: 'vendor'
          }
        }
      }
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: 'src/index.html',
        favicon: 'src/favicon.ico',
        inject: 'body'
      }),
      new webpack.ContextReplacementPlugin(/\@angular(\\|\/)core(\\|\/)fesm5/, path.resolve(__dirname, 'src'), {}),
      new FilterWarningsPlugin({
        exclude: /System.import/
      })
    ],
    devtool: 'source-map',
    devServer: {
      historyApiFallback: true
    }
  };
  