0.1.1 • Published 8 years ago

userscript-css-loader v0.1.1

Weekly downloads
4
License
-
Repository
github
Last release
8 years ago

Userscript CSS loader for webpack

Inject a CSS file in the DOM with the greasemonkey function GM_addStyle. Useful for loading a simple CSS file without embedding both css-loader and style-loader in your userscript.

Installation

npm install --save-dev userscript-css-loader

Usage

// ==UserScript==
// @name           Example userscript
// @grant          GM_addStyle
// ==/UserScript==

require('userscript-css!./style.css');