@senojs/rollup-plugin-style-inject

0.2.3 • Public • Published

@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.

Package Sidebar

Install

npm i @senojs/rollup-plugin-style-inject

Weekly Downloads

87

Version

0.2.3

License

MIT

Unpacked Size

5.45 kB

Total Files

5

Last publish

Collaborators

  • lz11597753
  • y-qwq
  • jeffylai
  • htmlin