diff --git a/build/webpack.dist.prod.config.js b/build/webpack.dist.prod.config.js index 94cc5829..ec98b529 100644 --- a/build/webpack.dist.prod.config.js +++ b/build/webpack.dist.prod.config.js @@ -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') - } - ]) + }) ] }); diff --git a/package.json b/package.json index c01f6f63..cf657f46 100644 --- a/package.json +++ b/package.json @@ -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",