text: const path = require('path');
  const webpack = require('webpack');
  const ExtractTextPlugin = require('extract-text-webpack-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const CopyWebpackPlugin = require('copy-webpack-plugin');
  
  module.exports = {
      entry: {
          'polyfills': './app/polyfills.ts',
          'vendor': './app/vendor.ts',
          'app': './app/bootstrap.ts'
      },
      module: {
          loaders: [{
              test: /\.ts?$/,
              loaders: ['awesome-typescript-loader?useWebpackText=true', 'angular2-template-loader'],
          }, {
              test: /\.html?$/,
              loaders: ['raw-loader'],
          }, {
              test: /\.css$/,
              loader: ['style-loader', 'css-loader?-url']
          }, {
              test: /\.less$/,
              loader: ['style-loader', 'css-loader', 'less-loader']
          }, {
              test: /\.json$/,
              loader: 'json-loader'
          }, {
              test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
              loader: 'url-loader?limit=10000&mimetype=application/font-woff'
          }, {
              test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
              loader: 'file-loader'
          }, {
              test: /\.js$/,
              loader: 'babel-loader',
              exclude: /node_modules/
          }]
      },
  
      output: {
          filename: '[name].[hash].bundle.js',
          sourceMapFilename: '[name].[hash].bundle.map',
          path: path.join(__dirname, 'dist'),
          publicPath: '/'
      },
      plugins: [
          new webpack.optimize.CommonsChunkPlugin({
              name: ['app', 'vendor', 'polyfills']
          }),
          new webpack.ProgressPlugin({}),
          new HtmlWebpackPlugin({
              template: 'app/index.html',
              chunksSortMode: 'dependency'
          })
      ],
      resolve: {
          extensions: ['.js', '.ts']
      },
      node: {
          fs: 'empty'
      }
  };
  