From eebc6886695f2cbfc2fa849c2eef1157c8520167 Mon Sep 17 00:00:00 2001 From: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com> Date: Thu, 26 Aug 2021 20:47:18 +0800 Subject: [PATCH] fix(build): marking side effects for webpack importing styles - Marking file under `dist` and `theme-chalk/*.css` `theme-chalk/*.scss` --- packages/element-plus/package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/element-plus/package.json b/packages/element-plus/package.json index 2c294a79a7..43bbef86ae 100644 --- a/packages/element-plus/package.json +++ b/packages/element-plus/package.json @@ -10,7 +10,11 @@ "style": "dist/index.css", "unpkg": "dist/index.full.js", "jsdevlivr": "dist/index.full.js", - "sideEffects": false, + "sideEffects": [ + "dist/*", + "theme-chalk/*.css", + "theme-chalk/src/*.scss" + ], "repository": { "type": "git", "url": "git+https://github.com/element-plus/element-plus.git"