<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
I think it bug</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
webpack uglify already minified file (.min.js)</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<ol dir="auto">
<li>install some dependency with minified build<br>
<code class="notranslate">npm i -s three</code></li>
<li>write alias to minidied file in config</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    extensions: [ '.ts' ],
    alias: {
      three: 'three/build/three.min.js',  // &lt;-----------------------
    }
  },"><pre lang="resolve:" class="notranslate"><code class="notranslate">    extensions: [ '.ts' ],
    alias: {
      three: 'three/build/three.min.js',  // &lt;-----------------------
    }
  },
</code></pre></div>
<ol start="3" dir="auto">
<li>run webpack in production mode</li>
</ol>
<p dir="auto">part in three.min.js<br>
<code class="notranslate">THREE.PointsMaterial.");return new Ha(a)};l.ParticleBasicMaterial=function(a){console.warn("THREE.ParticleBasicMaterial has</code></p>
<p dir="auto">after uglify two time:<br>
same part in vendor.min.js<br>
<code class="notranslate">THREE.PointsMaterial."),new ue(t)},t.ParticleBasicMaterial=function(t){return console.warn("THREE.ParticleBasicMaterial has</code></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
no auto minify already minidied files, parse alias from config and add entries with (min.js) extension to black list before run uglify, when run uglife check this black list.</p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.</strong><br>
package.json</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;@types/three&quot;: &quot;0.89.11&quot;,
    &quot;clean-webpack-plugin&quot;: &quot;0.1.18&quot;,
    &quot;copy-webpack-plugin&quot;: &quot;4.4.2&quot;,
    &quot;html-loader&quot;: &quot;0.5.5&quot;,
    &quot;html-webpack-plugin&quot;: &quot;webpack-contrib/html-webpack-plugin&quot;,
    &quot;three&quot;: &quot;0.90.0&quot;,
    &quot;ts-keycode-enum&quot;: &quot;1.0.4&quot;,
    &quot;ts-loader&quot;: &quot;4.0.0&quot;,
    &quot;typescript&quot;: &quot;2.7.2&quot;,
    &quot;webpack&quot;: &quot;4.0.1&quot;,
    &quot;webpack-cli&quot;: &quot;2.0.9&quot;,
    &quot;webpack-dev-server&quot;: &quot;3.1.0&quot;,
    &quot;webpack-split-chunks&quot;: &quot;^0.2.1&quot;"><pre class="notranslate"><code class="notranslate">"@types/three": "0.89.11",
    "clean-webpack-plugin": "0.1.18",
    "copy-webpack-plugin": "4.4.2",
    "html-loader": "0.5.5",
    "html-webpack-plugin": "webpack-contrib/html-webpack-plugin",
    "three": "0.90.0",
    "ts-keycode-enum": "1.0.4",
    "ts-loader": "4.0.0",
    "typescript": "2.7.2",
    "webpack": "4.0.1",
    "webpack-cli": "2.0.9",
    "webpack-dev-server": "3.1.0",
    "webpack-split-chunks": "^0.2.1"
</code></pre></div>
<p dir="auto">When using the UglifyJsPlugin within my webpack build I get a large list of errors from my <code class="notranslate">bower_components</code> dependencies. It looks to me (from here: <a href="https://github.com/webpack/webpack/blob/master/lib/optimize/UglifyJsPlugin.js#L43">https://github.com/webpack/webpack/blob/master/lib/optimize/UglifyJsPlugin.js#L43</a>) that I should be able to use something like this</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new webpack.optimize.UglifyJsPlugin({
  exclude: [
    /bower_components\//
  ]
})"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">optimize</span><span class="pl-kos">.</span><span class="pl-c1">UglifyJsPlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
  <span class="pl-c1">exclude</span>: <span class="pl-kos">[</span>
    <span class="pl-pds"><span class="pl-c1">/</span>bower_components<span class="pl-cce">\/</span><span class="pl-c1">/</span></span>
  <span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">which continues to throw out a massive list of errors, leading me to believe they are still being parsed.</p>