From 9475857c9b8e1388f91703e1a2d76c2156719f36 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Sun, 27 Jan 2019 21:29:23 +0800 Subject: [PATCH] docs: add a warning that css is considered as a side effect closes #1435 --- docs/guide/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide/README.md b/docs/guide/README.md index 9e4a7b2e6..3af08bd39 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -86,3 +86,7 @@ module.exports = { ``` Also see [Options Reference](../options.md) for all available loader options. + +::: warning +If you are developing a library or in a monorepo, please be aware that CSS imports **are side effects**. Make sure to **remove** `"sideEffects": false` in the `package.json`, otherwise CSS chunks will be dropped by webpack in production builds. +:::