rollup-plugin-userscript-css
v1.2.0
Published
import css file for userscirpt
Downloads
10
Readme
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.