修复#4555
This commit is contained in:
parent
c3874ee194
commit
31e200911c
2 changed files with 3 additions and 11 deletions
|
@ -4,7 +4,6 @@ const merge = require('webpack-merge');
|
|||
const webpackBaseConfig = require('./webpack.base.config.js');
|
||||
const CompressionPlugin = require('compression-webpack-plugin');
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
process.env.NODE_ENV = 'production';
|
||||
|
||||
|
@ -44,12 +43,6 @@ module.exports = merge(webpackBaseConfig, {
|
|||
test: /\.(js|css)$/,
|
||||
threshold: 10240,
|
||||
minRatio: 0.8
|
||||
}),
|
||||
new CopyWebpackPlugin([
|
||||
{
|
||||
from: path.resolve(__dirname, './../types'),
|
||||
to: path.resolve(__dirname, './../dist/types')
|
||||
}
|
||||
])
|
||||
})
|
||||
]
|
||||
});
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"framework"
|
||||
],
|
||||
"main": "dist/iview.js",
|
||||
"typings": "dist/types/index.d.ts",
|
||||
"typings": "types/index.d.ts",
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
|
@ -113,8 +113,7 @@
|
|||
"vue-template-compiler": "^2.5.16",
|
||||
"webpack": "^3.11.0",
|
||||
"webpack-dev-server": "^2.11.1",
|
||||
"webpack-merge": "^3.0.0",
|
||||
"copy-webpack-plugin": "^4.5.2"
|
||||
"webpack-merge": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.9.1",
|
||||
|
|
Loading…
Reference in a new issue