polyfills-webpack-plugin

0.1.3 • Public • Published

npm version

polyfills-webpack-plugin

Adds polyfills from polyfill-service to bundle file. Without magic.

(It is fork from Brogency/webpack-polyfills-plugin)

Usage:

  • Fist Parameter is which you want to Polyfills
  • Second Parameter is provide for customer config which file you do not want to Poly, If you not provide this parameter, All files will execute Poly. This must be a Regular Expression
var PolyfillsPlugin = require('polyfills-webpack-plugin');
 
module.exports = {
 
   // ...
 
   plugins: [
      new PolyfillsPlugin([
         'Array/prototype/find',
         'fetch'
      ], /\.(css|scss)$/)
   ]
}

Readme

Keywords

Package Sidebar

Install

npm i polyfills-webpack-plugin

Weekly Downloads

0

Version

0.1.3

License

ISC

Last publish

Collaborators

  • ohwubang