1.1.0 • Published 1 year ago

@freewheel/external-requires-webpack-plugin v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

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