Add 'prepare' npm script
This commit is contained in:
parent
ab1f52711e
commit
f12792edf1
1 changed files with 3 additions and 2 deletions
|
|
@ -35,11 +35,12 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start":
|
||||
"npm run parse-content && npm run resize-images && react-scripts start",
|
||||
"npm run prepare && react-scripts start",
|
||||
"build":
|
||||
"npm run parse-content && npm run resize-images && react-scripts build && react-snapshot && npm run sw",
|
||||
"npm run prepare && react-scripts build && react-snapshot && npm run sw",
|
||||
"parse-content": "node ./functions/parse-content.js",
|
||||
"resize-images": "node ./functions/resize-images.js",
|
||||
"prepare": "npm run parse-content & npm run resize-images",
|
||||
"sw": "sw-precache --config='sw-precache-config.js'",
|
||||
"test": "standard | snazzy && react-scripts test --env=jsdom",
|
||||
"eject": "react-scripts eject"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue