diff options
author | Marvin Borner | 2019-01-30 21:20:21 +0100 |
---|---|---|
committer | Marvin Borner | 2019-01-30 21:20:21 +0100 |
commit | 7ae4564837c65b6b45ab0780ad5deee46150aeb9 (patch) | |
tree | 1dbea34720158655351b023dd47cf0abf8e6cbf7 /package.json | |
parent | 70425d5662e0f6592ca73f4fa48c705a130ebe5c (diff) |
Added debug build option
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package.json b/package.json index 9c83f70..caf6d6d 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,10 @@ }, "scripts": { "dev": "npm run watch & nodemon src/index.js --exec \"node -r dotenv/config -r babel-register\"", - "watch": "npm run build && onchange public/styles/* -- npm run css & onchange public/scripts/* -- browserify public/scripts/main.js -o dist/app.js", + "watch": "npm run debug && onchange public/styles/* -- npm run css & onchange public/scripts/* -- browserify public/scripts/main.js -o dist/app.js", "css": "node-sass public/styles/main.sass dist/app.css --output-style compressed", - "build": "rm -r dist/* && npm run css && browserify public/scripts/main.js -o dist/app.js" + "debug": "rm -r dist/* && npm run css && browserify public/scripts/main.js -o dist/app.js", + "build": "rm -r dist/* && npm run css && browserify public/scripts/main.js -o dist/temp.js && minify dist/temp.js > dist/app.js && rm dist/temp.js && pug views/index.pug --out dist" }, "keywords": [ "express", |