From f12792edf1d74e254556edf21bd1b4340f6954a1 Mon Sep 17 00:00:00 2001 From: Jinksi Date: Sat, 18 Nov 2017 14:07:18 +1000 Subject: [PATCH] Add 'prepare' npm script --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c666cb2..fdf46ad 100644 --- a/package.json +++ b/package.json @@ -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"