Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

prepack-webpack-plugin

1.1.2 • Public • Published

prepack-webpack-plugin

Travis build status Coveralls NPM version Canonical Code Style

A webpack plugin for prepack.

Usage

  1. Install prepack-webpack-plugin.
  2. Add an instance of the plugin to the webpack plugin configuration.

Note that this plugin only works with webpack 4.x

Configuration

Name Description Default
test A regex used to match the files. /\.js($\|\?)/i
prepack Prepack configuration. See Prepack documentation.

Example

import PrepackWebpackPlugin from 'prepack-webpack-plugin';
 
const configuration = {};
 
module.exports = {
  // ...
  plugins: [
    new PrepackWebpackPlugin(configuration)
  ]
};
 

If you are using commonjs, you must explicitly reference the .default property of the module, e.g.

const PrepackWebpackPlugin = require('prepack-webpack-plugin').default;
 
const configuration = {};
 
module.exports = {
  // ...
  plugins: [
    new PrepackWebpackPlugin(configuration)
  ]
};
 

install

npm i prepack-webpack-plugin

Downloadsweekly downloads

1,295

version

1.1.2

license

BSD-3-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability