Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 585 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 585 Bytes

webpack-webext-plugin

a small Webpack plugin to integrate web-ext commands into a web-pack build.

Installation

npm i -D rpl/webpack-webext-plugin

In webpack.config.js

const WebpackWebExt = require('webpack-webext-plugin');

let config = {
    // <...>

    plugins: [
      new WebpackWebExt({
        runOnce: false,
        argv: ["lint", "-s", "extension/"],
      }),

      new WebpackWebExt({
        runOnce: true,
        maxRetries: 3,
        argv: ["run", "-s", "extension/"],
      })
    ]
};

module.exports = config;

Usage

webpack -w