Skip to content

bangwu/webpack-polyfills-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

polyfills-webpack-plugin

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

Now the maintained plugin, forked from https://github.com/beda-software/webpack-polyfills-plugin/ and ownership transferred.

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)$/)
   ]
}

About

Fork from Sl1v3r/webpack-polyfills-plugin

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%