Commit 31e200911cb9d66ddf6dc1a0f119c9e715d07c55
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 | 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 | }); | ... | ... |
package.json
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | "framework" |
15 | 15 | ], |
16 | 16 | "main": "dist/iview.js", |
17 | - "typings": "dist/types/index.d.ts", | |
17 | + "typings": "types/index.d.ts", | |
18 | 18 | "files": [ |
19 | 19 | "dist", |
20 | 20 | "src", |
... | ... | @@ -113,8 +113,7 @@ |
113 | 113 | "vue-template-compiler": "^2.5.16", |
114 | 114 | "webpack": "^3.11.0", |
115 | 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 | 118 | "engines": { |
120 | 119 | "node": ">=8.9.1", | ... | ... |