0.1.3 • Published 5 years ago

cran-push v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

cran-push Create React App server push header generator for Netlify

It is smple CLI tools for Create React App and Netlify

You can create HTTP2 Server push configure for your React Application created by the Create React App.

Getting started

$ npm i -g cran-push
$ cd /PATH/TO/YOUR/REACT/APP
$ npm run build
$ cran-push generate
Generated files
/*
  Link: </service-worker.js>; rel=preload; as=script
  Link: </static/css/main.8311bcb0.css>; rel=preload; as=style
  Link: </static/js/main.e38f9055.js>; rel=preload; as=script

Before

$ tree -L 2 -I node_modules
.
├── README.md
├── package-lock.json
├── package.json
├── public
│   ├── _headers
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
├── src
│   ├── App.js
│   ├── App.test.js
│   ├── index.js
└── yarn.lock

After

$ tree -L 2 -I node_modules
.
├── README.md
├── package-lock.json
├── package.json
├── build
│   ├── _headers
│   ├── asset-manifest.json
│   ├── favicon.ico
│   ├── index.html
│   ├── manifest.json
│   ├── service-worker.js
├── public
│   ├── _headers
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
├── src
│   ├── App.js
│   ├── App.test.js
│   ├── index.js
└── yarn.lock
0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago