Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benweizhu/webpack-polyfills-plugin
Fork from Sl1v3r/webpack-polyfills-plugin
https://github.com/benweizhu/webpack-polyfills-plugin
Last synced: 3 months ago
JSON representation
Fork from Sl1v3r/webpack-polyfills-plugin
- Host: GitHub
- URL: https://github.com/benweizhu/webpack-polyfills-plugin
- Owner: benweizhu
- Fork: true (bangwu/webpack-polyfills-plugin)
- Created: 2016-11-18T09:15:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-01T11:27:18.000Z (over 7 years ago)
- Last Synced: 2024-03-15T00:22:55.688Z (8 months ago)
- Language: JavaScript
- Size: 897 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - webpack-polyfills-plugin - polyfills-plugin | benweizhu | 1 | (JavaScript)
README
# polyfills-service-webpack-plugin
Adds polyfills from [polyfill-service](https://github.com/Financial-Times/polyfill-service) to bundle file. Without magic.
(It is fork from Sl1v3r/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```javascript
var PolyfillsPlugin = require('polyfills-service-webpack-plugin');module.exports = {
// ...
plugins: [
new PolyfillsPlugin([
'Array/prototype/find',
'fetch'
], /\.(css|scss)$/)
]
}
```Benwei modified
```
npm install polyfills-service-webpack-plugin --save-dev
```