Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ywzhaiqi/rollup-plugin-userscript-css

import css file for userscirpt
https://github.com/ywzhaiqi/rollup-plugin-userscript-css

rollup rollup-plugin userscript

Last synced: about 1 month ago
JSON representation

import css file for userscirpt

Awesome Lists containing this project

README

        

Rollup UserScript Css Plugin
============================

This [Rollup](http://rollupjs.org/) plugin will import css file for Greasemonkey / Tampermonkey.

## Install

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

## usage

```js
import './test.css'
```

`rollup.config.js`

```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 `