0.2.3 • Published 1 year ago

@senojs/rollup-plugin-style-inject v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@senojs/rollup-plugin-style-inject

Inject style to document head.

Usage

// vite.config.js
import styleInject from '@senojs/rollup-plugin-style-inject'

export default {
  plugins: [
    styleInject({
      insertAt: 'top',
    }),
  ],
}

Options

insertAt

  • Type: string
  • Default: 'top'

Insert <style> tag to specific position of <head> element.