@freewheel/external-requires-webpack-plugin

1.1.0 • Public • Published

External Require Webpack Plugin

NPM version Apache V2 License

A webpack plugin to expose modules so that user could require them externally.

Installation

Prerequisites: Node.js (>=4.x), npm version 2+.

npm install --save-dev external-requires-webpack-plugin

Basic Usage

var ExternalRequiresPlugin = require('external-requires-webpack-plugin');
var keys = require('lodash/keys');

var VENDORS = keys(packageJson.dependencies);

// ...
  plugins: [
    new ExternalRequiresPlugin({
      vendor: VENDORS,
      moduleA: ['pathA', 'pathB'],
      ...
    })
  ]
// ...

Contributing

Please read our contributing guide for details on how to contribute to our project.

License

Apache-2.0

Package Sidebar

Install

npm i @freewheel/external-requires-webpack-plugin

Weekly Downloads

0

Version

1.1.0

License

Apache-2.0

Unpacked Size

23.7 kB

Total Files

12

Last publish

Collaborators

  • robinyy