text: var webpack = require('webpack');
  var path = require('path');
  var CopyWebpackPlugin = require('copy-webpack-plugin');
  var HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      entry: path.resolve(__dirname, 'src/main.ts'),
      output: {
          path: path.resolve(__dirname, 'dist'),
          filename: 'app.[hash].js'
      },
      module: {
          rules: [
              { test: /\.component.ts$/, loaders: 'angular2-template-loader' },
              { test: /\.ts$/, loaders: 'awesome-typescript-loader' },
              { test: /\.html$/, loaders: 'html-loader' },
              { test: /\.css$/, loaders: ['to-string-loader','css-loader'] }
          ]
      },
      resolve: {
          extensions: ['*', '.js', '.ts', '.html', '.css']
      },
      plugins: [
          new HtmlWebpackPlugin({
              template: 'src/index.html'
          }),
          new CopyWebpackPlugin([
              {
                  from: 'src/assets/',
                  to: 'assets/',
              }
          ]),
          new CopyWebpackPlugin([
              {
                  from: 'appsettings.json',
                  to: 'appsettings.json',
              }
          ])
      ]
  };