webpack-external-react
v1.1.52
Published
Webpack config helpers to exclude react from bundle and load it from external script (via CDN).
Downloads
270
Maintainers
Readme
webpack-external-react
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.