npm package for development of userstyles
MIT License
Or similiar Extension, which can run javascript code. (Setting up a websocket to notify about style changes)
npm i -D userstyle-dev-server
userstyle-dev-server ./your/index/file.scss
// ==UserScript==
// @name UserStyle File-Reloader for Development
// @match https://*/*
// @require http://127.0.0.1:10000/client.js
// ==/UserScript==
userstyle-dev-server --build ./src/userStyle.definition.scss
/* ==UserStyle==
@name UserStyleName
@author Author
@version 1.0.0
==/UserStyle== */
@-moz-document regexp("https://google.com") {
@import 'style';
}
--help, -h Print help
--port, -p Provide port for server, given port and port+1 will be used
Default: 10000 and 10001
--build, -b Build the output file to dist folder