diff options
author | Marvin Borner | 2019-02-24 17:56:42 +0100 |
---|---|---|
committer | Marvin Borner | 2019-02-24 17:56:42 +0100 |
commit | 106e29607f85663e6fe224bed0ff3a41d6b6e5cf (patch) | |
tree | 8b507a60bed76d070532c2b98c55de937f46651b /package.json | |
parent | 08160492e22dd8da1cbb4decbb3481f5e6968201 (diff) |
Fixed deployment
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 76d05e8..64f25d8 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "watch": "npm run debug && onchange public/styles/* -- npm run css & onchange public/scripts/* -- npm run debug", "css": "node-sass public/styles/main.sass dist/app.css && cp public/images/* dist/", "debug": "rm -r dist/* && npm run css && browserify public/scripts/main.js -o dist/app.js", - "build": "rm -r dist/* && node-sass public/styles/main.sass dist/app.css --output-style compressed && browserify public/scripts/main.js -o dist/temp.js && minify dist/temp.js > dist/app.js && pug views/index.pug --out dist && rm dist/temp*", + "build": "rm -r dist/* && node-sass public/styles/main.sass dist/app.css --output-style compressed && cp public/images/* dist/ && browserify public/scripts/main.js -o dist/temp.js && minify dist/temp.js > dist/app.js && pug views/index.pug --out dist && rm dist/temp*", "single": "rm -rf dist/* && node-sass public/styles/main.sass dist/app.css --output-style compressed && browserify public/scripts/main.js -o dist/temp.js && minify dist/temp.js > dist/app.js && rm dist/temp.* && pug views/index.pug --out dist && echo '<script>'$(cat dist/app.js)'</script>' >> dist/index.html && echo '<style>'$(cat dist/app.css)'</style>' >> dist/index.html && html-minifier --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true dist/index.html > dist/complete.html" }, "keywords": [ |