Commit 9e8aa397 authored by Haoqun Jiang's avatar Haoqun Jiang Committed by Evan You

docs: add a warning that css is considered as a side effect (#1485)

closes #1435
parent 2d962154
......@@ -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.
:::
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment