Skip to content

Commit

Permalink
docs: adding postcss plugin load order explanation (#10803)
Browse files Browse the repository at this point in the history
  • Loading branch information
xukechu committed Nov 8, 2022
1 parent 333bacb commit 5c4c58f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ Vite is pre-configured to support CSS `@import` inlining via `postcss-import`. V

If the project contains valid PostCSS config (any format supported by [postcss-load-config](https://github.com/postcss/postcss-load-config), e.g. `postcss.config.js`), it will be automatically applied to all imported CSS.

Note that CSS minification will run after PostCSS and will use [`build.cssTarget`](/config/build-options.md#build-csstarget) option.

### CSS Modules

Any CSS file ending with `.module.css` is considered a [CSS modules file](https://github.com/css-modules/css-modules). Importing such a file will return the corresponding module object:
Expand Down

0 comments on commit 5c4c58f

Please sign in to comment.