rewire-js-entry

2.1.0 • Public • Published

rewire-js-entry

Rewire for react-app-rewired to change JS entry points of create-react-app.

This is a fork from rewire-entry adding compatibility with react-scripts 3.

Usage

npm install react-app-rewired rewire-js-entry --save-dev

Create a config-overrides.js file in the root directory with something like this:

const rewireEntry = require('rewire-js-entry');

module.exports = rewireEntry({
  entry: ['desktop.js', 'touch.js']
});

or for typescript support:

const rewireTypescript = require('react-app-rewire-typescript');
const rewireEntry = require('rewire-js-entry');

module.exports = rewireEntry({
  entry: ['desktop.tsx', 'touch.tsx']
});

Contributing

This is a tiny library with little activity, no process, just reach out ;)

Publish process Just a reminder for the maintainer ;)
  • bump version
  • commit / push / merge PR
  • tag version v__ to create release
  • add changelog to release note
  • run npm publish from dev host

Package Sidebar

Install

npm i rewire-js-entry

Weekly Downloads

2

Version

2.1.0

License

MIT

Unpacked Size

6.04 kB

Total Files

4

Last publish

Collaborators

  • tibotiber