vite-plugin-import-css
v0.1.5
Published
Help your lib import css files through vite plugin
Downloads
86
Readme
vite-plugin-import-css
Help your lib import css files through vite plugin.
Installation
pnpm add vite-plugin-import-css -D
Usage
import { defineConfig } from 'vite'
import plugin from 'vite-plugin-import-css'
export default defineConfig({
plugins: [plugin()],
})
Options
cssFile
Type: string
Default: ./style.css
The default is ./style.css
, which is useful when you have changed the name using assetFileName
.
dynamicImport
Type: boolean
Default: false
If true
, the plugin will use import()
to import css files in esm.