1.2.0 • Published 7 years ago

rollup-plugin-userscript-css v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Rollup UserScript Css Plugin

This Rollup plugin will import css file for Greasemonkey / Tampermonkey.

Install

npm install --save rollup-plugin-userscript-css

usage

import './test.css'

rollup.config.js

import userScriptCss from 'rollup-plugin-userscript-css'

export default {
  ...
  plugins: [
    userScriptCss()
  ]
}

Options

insert

  • Default: true
  • Type: Boolean

Default true, the plugin will insert CSS into <head/> tag.

include

  • Default: [ '**/*.css' ]

  • Type: String|Array

Minimatch pattern or array of minimatch patterns to determine which files are transpiled by the plugin.

exclude

  • Default: node_modules/**

  • Type: String|Array

Minimatch pattern or array of minimatch patterns to determine which files are explicitly not transpiled by the plugin, overrules the include option.

References

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago