Merge pull request #4930 from yangdan8/2.0_修复#4555

2.0 修复#4555
This commit is contained in:
Aresn 2018-12-06 14:53:14 +08:00 committed by GitHub
commit e2ac3e07bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View file

@ -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')
}
])
})
]
});

View file

@ -14,7 +14,7 @@
"framework"
],
"main": "dist/iview.js",
"typings": "dist/types/index.d.ts",
"typings": "types/index.d.ts",
"files": [
"dist",
"src",