webpack-external-react

1.1.52 • Public • Published

webpack-external-react

NPM version Build Status Dependency Status devDependency Status

Webpack config helpers to exclude react from bundle and load it from external script (via CDN).

Installation

npm install --save-dev webpack-external-react

Loading

const externalReact = require('webpack-external-react');

Usage

// in webpack config
module.exports = {
  ...

  externals: externalReact.externals,

  module: {
    noParse: externalReact.noParse,

    ...
  },
}

License

Copyright © 2017 - 2019 Maciej Chałapuk. Released under MIT License.

Package Sidebar

Install

npm i webpack-external-react

Weekly Downloads

79

Version

1.1.52

License

MIT

Unpacked Size

6.05 kB

Total Files

7

Last publish

Collaborators

  • mchalapuk