katargha
v1.0.1
Published
Katargha is an sub-module bundler for the CRA based projects, works without ejecting from CRA
Downloads
2
Readme
KATARGHA
Katargha is an sub-module bundler for the CRA based projects, works without ejecting from CRA
Basic configuration and usage
.katargha.json
{
"dir": "./sw-modules",
"override": "./build/service-worker.js",
"ignore": [
"i-don't-need-this-service.js",
]
}
package.json
- "build": "react-scripts build"
+ "build": "react-scripts build && katargha -l"
File Structure for Create React App
root/
build/
service-worker.js
src/
App.js
...
.katargha.json
/sw-modules
module-1.js
module-2.js
index.js
...
Command Line Args
katargha -flag
- -l [shows list available modules in pre-defined modules directory]
- -c /path/to/conf.json [overrides config default location]
TODO for .katargha.json
- [x] Override support
- [ ] Output support
- [ ] API for node-side internal configuration