From 31e200911cb9d66ddf6dc1a0f119c9e715d07c55 Mon Sep 17 00:00:00 2001 From: yangd Date: Thu, 29 Nov 2018 12:54:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D#4555?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.dist.prod.config.js | 9 +-------- package.json | 5 ++--- 2 files changed, 3 insertions(+), 11 deletions(-) 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",