@sakadda/vite-plugin-laravel-purgecss
v0.0.2
Published
Purges CSS for laravel-vite
Downloads
25
Maintainers
Readme
vite-plugin-laravel-purgecss
This Vite plugin purges CSS based on Blade templats output using PurgeCSS.
Install
Yarn
yarn add @sakadda/vite-plugin-laravel-purgecss -D
or npm
npm i @sakadda/vite-plugin-laravel-purgecss --save-dev
Usage
Configuration
Use plugin in your Vite config (vite.config.ts
)
import purge from '@sakadda/vite-plugin-laravel-purgecss'
export default {
plugins: [
purge(),
]
}
Options
| Parameter | Type | Description |
| ----------- | ----------- | ----------- |
| safeList | UserDefinedSafelist
| Check available safelist options in PurgeCSS docs.