text: var path = require('path');
  var webpack = require('webpack');
  var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin;
  
  module.exports = {
    devtool: 'source-map',
    debug: true,
  
    entry: {
      'angular2': [
        'rxjs',
        'angular2/bundles/angular2-polyfills',
        'angular2/core',
        'angular2/router',
        'angular2/http'
      ],
      'app': './src/app'
    },
  
    output: {
      path: __dirname + '/src/build/',
      publicPath: 'build/',
      filename: '[name].js',
      sourceMapFilename: '[name].js.map',
      chunkFilename: '[id].chunk.js'
    },
  
    resolve: {
      extensions: ['','.ts','.js','.json', '.css', '.html']
    },
  
    module: {
      loaders: [
        { test: /\.ts$/, loader: 'ts', exclude: /node_modules/ },
        { test: /\.scss$/, loader: 'style!css!sass' },
        { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff&name=[name].[ext]" },
        { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader?name=[name].[ext]" },
        { test: /\.(png|jpg)$/, loader: 'url-loader?limit=8192&name=[name].[ext]'}
      ]
    },
  
    plugins: [
      new CommonsChunkPlugin({ name: 'angular2', filename: 'angular2.js', minChunks: Infinity }),
      new CommonsChunkPlugin({ name: 'common',   filename: 'common.js' }),
      new webpack.ProvidePlugin({ $: "jquery", jQuery: "jquery", 'window.jQuery': 'jquery', 'root.jQuery': 'jquery'})
    ]
  };