webpack-restrict-node-stuff
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-restrict-node-stuff

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.1 kB

Total Files

5

Last publish

Collaborators

  • linusu