Commit 31e200911cb9d66ddf6dc1a0f119c9e715d07c55

Authored by yangd
1 parent c3874ee1

修复#4555

Showing 2 changed files with 3 additions and 11 deletions   Show diff stats
build/webpack.dist.prod.config.js
@@ -4,7 +4,6 @@ const merge = require('webpack-merge'); @@ -4,7 +4,6 @@ const merge = require('webpack-merge');
4 const webpackBaseConfig = require('./webpack.base.config.js'); 4 const webpackBaseConfig = require('./webpack.base.config.js');
5 const CompressionPlugin = require('compression-webpack-plugin'); 5 const CompressionPlugin = require('compression-webpack-plugin');
6 const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); 6 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
7 -const CopyWebpackPlugin = require('copy-webpack-plugin');  
8 7
9 process.env.NODE_ENV = 'production'; 8 process.env.NODE_ENV = 'production';
10 9
@@ -44,12 +43,6 @@ module.exports = merge(webpackBaseConfig, { @@ -44,12 +43,6 @@ module.exports = merge(webpackBaseConfig, {
44 test: /\.(js|css)$/, 43 test: /\.(js|css)$/,
45 threshold: 10240, 44 threshold: 10240,
46 minRatio: 0.8 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 });
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 "framework" 14 "framework"
15 ], 15 ],
16 "main": "dist/iview.js", 16 "main": "dist/iview.js",
17 - "typings": "dist/types/index.d.ts", 17 + "typings": "types/index.d.ts",
18 "files": [ 18 "files": [
19 "dist", 19 "dist",
20 "src", 20 "src",
@@ -113,8 +113,7 @@ @@ -113,8 +113,7 @@
113 "vue-template-compiler": "^2.5.16", 113 "vue-template-compiler": "^2.5.16",
114 "webpack": "^3.11.0", 114 "webpack": "^3.11.0",
115 "webpack-dev-server": "^2.11.1", 115 "webpack-dev-server": "^2.11.1",
116 - "webpack-merge": "^3.0.0",  
117 - "copy-webpack-plugin": "^4.5.2" 116 + "webpack-merge": "^3.0.0"
118 }, 117 },
119 "engines": { 118 "engines": {
120 "node": ">=8.9.1", 119 "node": ">=8.9.1",