0.1.2 • Published 3 years ago

vite-plugin-lib-inject-style v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vite-plugin-lib-inject-style npm

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

0.1.2

3 years ago

0.1.1

3 years ago

0.0.1

3 years ago

0.0.3

3 years ago

0.0.2-alpha.5

3 years ago

0.0.2-alpha.4

3 years ago

0.0.2-alpha.3

3 years ago

0.0.2-alpha.2

3 years ago

0.0.2-alpha.1

3 years ago

0.0.2

3 years ago

0.0.1-alpha.2

3 years ago

0.0.1-alpha.1

3 years ago

0.0.0

3 years ago