vite-plugin-lib-inject-style
v0.1.2
Published
> The node version must be greater than 16.0.0!does not support ssr!
Downloads
7
Maintainers
Readme
vite-plugin-lib-inject-style
The node version must be greater than 16.0.0!does not support ssr!
// vite.config.ts
import VitePluginLibInjectStyle from 'vite-plugin-lib-inject-style'
export default {
plugins: [VitePluginLibInjectStyle({
// options ..
})]
}
Options
export interface PluginOptions {
/**
* Insert `<style>` tag(s) to the beginning of the container
* @default false
*/
prepend?: boolean
/**
* Inject CSS into single `<style>` tag only
* @default false
*/
singleTag?: boolean
/**
* Container for `<style>` tag(s) injection
* @default "head"
*/
container?: string
/**
* Set attributes of injected `<style>` tag(s)
* - ex.: `{"id":"global"}`
*/
attributes?: Record<string, string>
}
License
MIT