title: OpenLayers v3 with Webpack
body: <p>Hello I am currently using OpenLayers v3 with Webpack. It works fine when I am not using UglifyJS. But the moment I added my uglifyJS config, it just won't compile anymore</p>
  
  <p>My UglifyJS config</p>
  
  <pre><code>     new webpack.optimize.UglifyJsPlugin({
          minimize: true,
          sourceMap: false,
          compress: {
              warnings: false,
              sequences: true,
              dead_code: true,
              conditionals: true,
              booleans: true,
              unused: true,
              if_return: true,
              join_vars: true,
              drop_console: true
          }
      }),
  </code></pre>
  
  <p>And i get this error</p>
  
  <pre><code>from UglifyJs RangeError: Maximum call stack size exceeded
  </code></pre>
  
  <p>I am using the <code>dist/ol.js</code> file.</p>
  
  <p>Any idea how to solve this?</p>