Commit e2ac3e07bfce4148ddaee73dd3000ad3db406e14
Committed by
GitHub
Merge pull request #4930 from yangdan8/2.0_修复#4555
2.0 修复#4555
Showing
2 changed files
with
2 additions
and
9 deletions
Show diff stats
build/webpack.dist.prod.config.js
| ... | ... | @@ -4,7 +4,6 @@ const merge = require('webpack-merge'); |
| 4 | 4 | const webpackBaseConfig = require('./webpack.base.config.js'); |
| 5 | 5 | const CompressionPlugin = require('compression-webpack-plugin'); |
| 6 | 6 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); |
| 7 | -const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
| 8 | 7 | |
| 9 | 8 | process.env.NODE_ENV = 'production'; |
| 10 | 9 | |
| ... | ... | @@ -44,12 +43,6 @@ module.exports = merge(webpackBaseConfig, { |
| 44 | 43 | test: /\.(js|css)$/, |
| 45 | 44 | threshold: 10240, |
| 46 | 45 | minRatio: 0.8 |
| 47 | - }), | |
| 48 | - new CopyWebpackPlugin([ | |
| 49 | - { | |
| 50 | - from: path.resolve(__dirname, './../types'), | |
| 51 | - to: path.resolve(__dirname, './../dist/types') | |
| 52 | - } | |
| 53 | - ]) | |
| 46 | + }) | |
| 54 | 47 | ] |
| 55 | 48 | }); | ... | ... |