prepack-webpack-plugin

A webpack plugin for prepack.

Github stars Tracking Chart

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)
  ]
};

Main metrics

Overview
Name With Ownergajus/prepack-webpack-plugin
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:Other
所有者活动
Created At2017-05-03 17:46:31
Pushed At2018-10-07 19:14:38
Last Commit At2018-10-07 20:11:21
Release Count4
Last Release Namev1.1.2 (Posted on )
First Release Namev1.0.1 (Posted on 2017-05-03 20:31:47)
用户参与
Stargazers Count1k
Watchers Count18
Fork Count46
Commits Count82
Has Issues Enabled
Issues Count33
Issue Open Count15
Pull Requests Count15
Pull Requests Open Count0
Pull Requests Close Count5
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private