0.0.11 • Published 4 years ago

webext-webpack-plugin v0.0.11

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

web-ext plugin for Webpack 5

NPM Version Build Status Dependencies Test Coverage

Install

yarn add -D webext-webpack-plugin
npm add --save-dev webext-webpack-plugin

Usage

Javascript

const WebExtWebpackPlugin = require('webext-webpack-plugin');
const path = require('path');

const baseDir = path.resolve(__dirname);

const config = {
  plugins: [
    new WebExtWebpackPlugin({
      run: {
        firefox: 'C:\\Program Files\\Firefox Developer Edition\\firefox.exe',
        startUrl: ['https://google.com/'],
      },
    }),
  ]
};

TypeScript

import * as path from 'path';
import * as webpack from 'webpack';
import WebExtWebpackPlugin from 'webext-webpack-plugin';

const baseDir = path.resolve(__dirname);

const config: webpack.Configuration  = {
  plugins: [
    new WebExtWebpackPlugin({
      run: {
        firefox: 'C:\\Program Files\\Firefox Developer Edition\\firefox.exe',
        startUrl: ['https://google.com/'],
      },
    }),
  ]
};

export default config;

License

MIT

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago