From 6ec870abce8a416df9d3080b4b30202f7c46ba34 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 17 Jun 2019 14:30:36 +0800 Subject: [PATCH] [improvement] add sideEffects to enable tree shaking (#3530) --- package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.json b/package.json index ee9ddb209..4a8c1fc33 100644 --- a/package.json +++ b/package.json @@ -122,6 +122,12 @@ "webpack-cli": "^3.3.2", "webpack-dev-server": "3.3.1" }, + "sideEffects": [ + "es/**/style/*", + "lib/**/style/*", + "*.css", + "*.less" + ], "vetur": { "tags": "vetur/tags.json", "attributes": "vetur/attributes.json"