title: Using Uglify with TypeScript and Webpack 2
body: <p>I'm a beginner with Webpack 2, and I'm trying to set up a build that transpiles TypeScript to JavaScript and minifies the JavaScript with Uglify. But I don't know how to set this in webpack.config.js. Here's my attempt:</p>
  
  <pre><code>module.exports = {
    entry: "./app.ts",
    output: {
      filename: "./app.js"
    },
    resolve: {
      extensions: [".ts"]
    },
    module: {
      rules: [
        {
          test: /.ts/,
          loader: "awesome-typescript-loader!tslint-loader"
        },
        {
          enforce: "post",
          test: /.js/,
          loader: "uglify-loader"
        }      
      ]
    }
  };
  </code></pre>
  
  <p>I'd hoped that the "post" rule would be executed after the JavaScript was generated. But the Uglify loader isn't being called at all.</p>