rewire-js-entry
v2.1.0
Published
Rewire to change JS entry points of create-react-app
Downloads
3
Maintainers
Readme
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 ;)
- bump version
- commit / push / merge PR
- tag version
v__
to create release - add changelog to release note
- run
npm publish
from dev host