var webpack = require("webpack");
var path = require('path');
var replacements = require('./replacements.config');
module.exports = {
  entry: {
    app: './src/app.ts'
  },
  output: {
    filename: './www/js/[name].dist.js'
  },
  resolve: {
    root: [path.join(__dirname, 'node_modules')],
    extensions: ['', '.ts', '.webpack.js', '.web.js', '.js']
  },
  devtool: (process.env.ENV === 'release') ? 'eval' : 'inline-source-map',
  module: {
    loaders: [
      { test: /\.ts$/, loaders: ['ng-annotate', 'ts-loader'] },
      {
        test: /\.ts$/,
        loader: 'string-replace',
        query: {
          multiple: replacements[process.env.ENV || 'debug']
        }
      }
    ]
  },
  plugins: /*(process.env.ENV !== 'release') ? [] :*/ [
    new webpack.optimize.UglifyJsPlugin({minimize: true})  // minify
  ]
}

var path = require('path');
var replacements = require('./replacements.config');
module.exports = {
  entry: {
    app: './src/app.ts'
  },
  output: {
    filename: './www/js/[name].dist.js'
  },
  resolve: {
    root: [path.join(__dirname, 'node_modules')],
    extensions: ['', '.ts', '.webpack.js', '.web.js', '.js']
  },
  devtool: (process.env.ENV === 'release') ? 'eval' : 'inline-source-map',
  module: {
    loaders: [
      { test: /\.ts$/, loaders: ['ng-annotate', 'ts-loader'] },
      {
        test: /\.ts$/,
        loader: 'string-replace',
        query: {
          multiple: replacements[process.env.ENV || 'debug']
        }
      }
    ]
  }
}

--- 
+++ 
@@ -1,3 +1,4 @@
+var webpack = require("webpack");
 var path = require('path');
 var replacements = require('./replacements.config');
 module.exports = {
@@ -23,5 +24,8 @@
         }
       }
     ]
-  }
+  },
+  plugins: /*(process.env.ENV !== 'release') ? [] :*/ [
+    new webpack.optimize.UglifyJsPlugin({minimize: true})  // minify
+  ]
 }
Add a minify function to webpack
