robario / userscript-webpack-plugin

Webpack Plugin for generating UserScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

userscript-webpack-plugin

Webpack Plugin for generating UserScript

Install

$ npm i --save-dev userscript-webpack-plugin

Usage

The plugin will generate an UserScript file for you that includes all your webpack bundles. Just add the plugin to your webpack config as follows:

const UserScriptWebpackPlugin = require('userscript-webpack-plugin');

module.exports = {
  ...
  plugins: [
    new UserScriptWebpackPlugin(),
  ],
};

About

Webpack Plugin for generating UserScript

License:MIT License


Languages

Language:JavaScript 100.0%