0.4.0 • Published 3 years ago
userscript-metadata-webpack-plugin v0.4.0
userscript-metadata-webpack-plugin
userscript-metadata-webpack-plugin is a webpack plugin to
generate userscript metadata comments for UserScript.
require:
- webpack 5
- nodejs >= 16
usage
you can find a full template project in webpack-userscript-template
install
npm i userscript-metadata-webpack-plugin -Dconfigure
webpack.config.js
const pkg = require('../package.json');
const {UserScriptMetaDataPlugin} = require('userscript-metadata-webpack-plugin');
const config = {
  // ...
  // ...
  plugins: [
    new UserScriptMetaDataPlugin({
      metadata: {...},
      test: /\.user\.js$/, // optional, default /\.user\.js$/
    }),
  ],
};
module.exports = config;you can see more details about metadata here https://github.com/trim21/userscript-metadata-generator
0.3.0
3 years ago
0.4.0
3 years ago
0.3.1
3 years ago
0.2.12
3 years ago
0.2.11
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.2.7
3 years ago
0.2.9
3 years ago
0.2.8
3 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.5
3 years ago
0.2.4
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.2
3 years ago
0.1.1
4 years ago
0.1.0
5 years ago
0.0.4
6 years ago
0.0.6
6 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago