Skip to content

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

License

Notifications You must be signed in to change notification settings

mchalapuk/webpack-external-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published