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.

    Install

    npm i webpack-external-react

    DownloadsWeekly Downloads

    70

    Version

    1.1.52

    License

    MIT

    Unpacked Size

    6.05 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar