Package detail

@senojs/rollup-plugin-style-inject

senoteam1.3kMIT0.2.3

rollup-plugin-style-inject

seno, rollup-plugin, vite-plugin

readme

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

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.2.3 (2022-12-28)

Reverts

  • Revert "perf: 🧊 fixed output order of css" (5ad8c91)

0.2.2 (2022-12-21)

Bug Fixes

  • 🐞 \a0 conversion error (53ebe28)

0.2.1 (2022-12-08)

Performance Improvements

  • 🧊 fixed output order of css (585e739)

0.2.0 (2022-11-18)

Features

  • style-inject: 🌟 support for transform less files (845ed09)

0.1.1 (2022-09-15)

Performance Improvements

0.1.0 (2022-09-15)

Features

  • style-inject: new plugin (0ccd23b)