Skip to content

Katargha is an sub-module bundler for the CRA based projects, works without ejecting from CRA

License

Notifications You must be signed in to change notification settings

MartiniWA/katargha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

Katargha is an sub-module bundler for the CRA based projects, works without ejecting from CRA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •