ara
axis-react-app-rewire-multiple-entry
npm i axis-react-app-rewire-multiple-entry
ara

axis-react-app-rewire-multiple-entry

Support Multiple Entries in Create-React-App

by leomyili

1.1.2 (see all)License:MITTypeScript:DefinitelyTyped
npm i axis-react-app-rewire-multiple-entry
Readme

[axis-react-app-rewire-multiple-entry] is update by [React App Rewire Multiple Entry]

Usage

npm install axis-react-app-rewire-multiple-entry --save-dev

Basic Usage

// config-overrides.js

const multipleEntry = require('axis-react-app-rewire-multiple-entry')([{
    entry: 'src/entry/admin.js',
    template: 'public/admin.html'
    outPath: '/admin.html'
}]);

module.exports = {
    webpack: function(config, env){
        multipleEntry.addMultiEntry(config);
        return config;
    },
    devServer: function(configFunction) {
        return function(proxy, allowedHost) {
            const config = configFunction(proxy, allowedHost);

            return multipleEntry.addEntryProxy(config);
        };
    }
}

Downloads/wk

3

GitHub Stars

122

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

6

OPEN ISSUES

4

OPEN PRs

7
VersionTagPublished
1.1.2
latest
3yrs ago
No alternatives found
No tutorials found
Add a tutorial