Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.42 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.42 KB

npm travis climate deps gratipay

This is like Autoprefixer, but for JavaScript polyfills. It scans your code and applies only required polyfills.

Install

$ npm i -S autopolyfiller-loader

Usage

module: {
    postLoaders: [ {
        test: /\.js$/,
        exclude: /\/(node_modules|bower_components)\//,
        loader: 'autopolyfiller?{ browsers: [ "last 2 versions", "ie >= 9" ] }'
    } ]
}

Documentation: Using loaders.

License

WTFPL