text: var webpack = require('webpack');
  
  var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin;
  
  module.exports = {
      devtool: 'source-map',
      entry: {
          // 'tests': ['./app/tests'],
          'vendor': ['./app/polyfills', './app/vendor'],
          'app': './app/main'
      },
      output: {
          path: __dirname + "/dist",
          filename: "[name].js",
          publicPath: "dist/"
      },
      resolve: {
          extensions: ['.ts', '.js', '.jpg', '.jpeg', '.gif', '.png', '.css', '.html']
      },
      module: {
          loaders: [
              { test: /\.(jpg|jpeg|gif|png)$/, loader:'file-loader?name=img/[path][name].[ext]' },
              { test: /\.(eof|woff|woff2|svg)$/, loader:'file-loader?name=img/[path][name].[ext]' },
              { test: /\.css$/, loader:'raw-loader' },
              { test: /\.html$/,  loaders: ['html-loader'] },
              { test: /\.ts$/, loaders: ['angular2-router-loader?loader=system', 'angular2-template-loader', 'awesome-typescript-loader'], exclude: /node_modules/}
          ]
      },
      plugins: [
          new CommonsChunkPlugin({ name: 'vendor'})
      ],
      node: {
          __filename: true
      },
      devServer: {
          inline:true,
          port: 8082,
          historyApiFallback: true,
          watchOptions: {
              aggregateTimeout: 300,
              poll: 1000
          }
      }
  
  };
  