Commit e2ac3e07bfce4148ddaee73dd3000ad3db406e14

Authored by Aresn
Committed by GitHub
2 parents 845325b2 750cfa69

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,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",