prepack-webpack-plugin

A webpack plugin for prepack.

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者gajus/prepack-webpack-plugin
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證Other
所有者活动
創建於2017-05-03 17:46:31
推送於2018-10-07 19:14:38
最后一次提交2018-10-07 20:11:21
發布數4
最新版本名稱v1.1.2 (發布於 )
第一版名稱v1.0.1 (發布於 2017-05-03 20:31:47)
用户参与
星數1k
關注者數18
派生數46
提交數82
已啟用問題?
問題數33
打開的問題數15
拉請求數15
打開的拉請求數0
關閉的拉請求數5
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?