1.0.1 • Published 6 years ago
webpack-restrict-node-stuff v1.0.1
Restrict Node Stuff for Webpack
A small utility to generate a very restrictive node
config for webpack. Use this when you want full control of which polyfills you have in your output bundle.
Installation
npm install --save webpack-restrict-node-stuff
Usage
const restrictNodeStuff = require('webpack-restrict-node-stuff')
// ...
module.exports = {
// ...
node: restrictNodeStuff(['global'])
}
API
restrictNodeStuff([whitelist])
Returns a config object for the webpack node
property that disables everything except the items listed in whitelist
.