https://github.com/mchalapuk/webpack-external-react
Webpack config helpers to exclude react from bundle and load it from external script (via CDN).
https://github.com/mchalapuk/webpack-external-react
cdn external react util webpack
Last synced: 8 months ago
JSON representation
Webpack config helpers to exclude react from bundle and load it from external script (via CDN).
- Host: GitHub
- URL: https://github.com/mchalapuk/webpack-external-react
- Owner: mchalapuk
- License: mit
- Created: 2017-11-24T00:52:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-20T01:31:05.000Z (almost 4 years ago)
- Last Synced: 2025-08-21T19:49:19.665Z (10 months ago)
- Topics: cdn, external, react, util, webpack
- Language: JavaScript
- Size: 638 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-external-react
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][david-image]][david-url] [![devDependency Status][david-image-dev]][david-url-dev]
Webpack config helpers to exclude react from bundle and load it from external script (via CDN).
[repo-url]: https://github.com/mchalapuk/webpack-external-react
[travis-url]: http://travis-ci.org/mchalapuk/webpack-external-react
[travis-image]: https://secure.travis-ci.org/mchalapuk/webpack-external-react.png?branch=master
[david-url]: https://david-dm.org/mchalapuk/webpack-external-react
[david-image]: https://david-dm.org/mchalapuk/webpack-external-react.svg
[david-url-dev]: https://david-dm.org/mchalapuk/webpack-external-react?type=dev
[david-image-dev]: https://david-dm.org/mchalapuk/webpack-external-react/dev-status.svg
[npm-url]: https://npmjs.org/package/webpack-external-react
[npm-image]: https://badge.fury.io/js/webpack-external-react.svg
## Installation
```shell
npm install --save-dev webpack-external-react
```
## Loading
```javascript
const externalReact = require('webpack-external-react');
```
## Usage
```javascript
// in webpack config
module.exports = {
...
externals: externalReact.externals,
module: {
noParse: externalReact.noParse,
...
},
}
```
## License
Copyright © 2017 - 2019 Maciej Chałapuk.
Released under [MIT License](LICENSE).