Skip to content

Commit 9e8aa39

Browse files
haoqunjiangyyx990803
authored andcommitted
docs: add a warning that css is considered as a side effect (#1485)
closes #1435
1 parent 2d96215 commit 9e8aa39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: docs/guide/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,7 @@ module.exports = {
8686
```
8787

8888
Also see [Options Reference](../options.md) for all available loader options.
89+
90+
::: warning
91+
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.
92+
:::

0 commit comments

Comments
 (0)