rollup-plugin-style

0.1.0 • Public • Published

rollup-plugin-style

A style plugin for rollup.

use

...
plugins: [
  ...
  style(options)
]

options

  • options.include Include file; default ['**/*.css']

  • options.exclude Exclude file; default []

  • options.output Output type; style, inline, file; default inline.

    • style The style tag will be automatically generated and inserted into head.
    • inline Use for import cssText from './xxx.css.
    • file Output to file.
  • options.dest Output file dir.

  • options.compile = async (code, extname) => {} Compiler handler support.

Package Sidebar

Install

npm i rollup-plugin-style

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

8.19 kB

Total Files

4

Last publish

Collaborators

  • lanyue