1.0.1 • Published 5 years ago

katargha v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

TODO for .katargha.json

  • Override support
  • Output support
  • API for node-side internal configuration