Skip to content

PostCSS ​

@vituum/vite-plugin-postcss

Adds more base PostCSS plugins to Vite.
Includes postcss-import, postcss-nesting, postcss-custom-media, autoprefixer

Add more via Vite or PostCSS config. See Vite docs for more info.

Install ​

npm

bash
npm i @vituum/vite-plugin-postcss --save-dev

yarn

bash
yarn add @vituum/vite-plugin-postcss -D

Config ​

javascript
import postcss from '@vituum/vite-plugin-postcss'

export default {
    plugins: [postcss()]
}

Options ​

import ​

  • Type: Object
  • Default: {}

PostCSS [postcss-import](https://www.npmjs.com/package/postcss-import plugin options.

nesting ​

  • Type: Object
  • Default: {}

PostCSS postcss-nesting plugin options.

customMedia ​

  • Type: Object
  • Default: {}

PostCSS postcss-custom-media plugin options.

autoprefixer ​

  • Type: Object
  • Default: {}

PostCSS autoprefixer plugin options.

Released under the MIT License.