1.0.1 • Published 6 years ago

webpack-restrict-node-stuff v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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.

1.0.1

6 years ago

1.0.0

6 years ago