Skip to content
Simple webpack loader module for using CSS in userscripts
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
index.js
package.json

README.md

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');
You can’t perform that action at this time.