aboutsummaryrefslogtreecommitdiffhomepage
path: root/package.json
diff options
context:
space:
mode:
authorMarvin Borner2019-02-24 17:04:43 +0100
committerMarvin Borner2019-02-24 17:04:43 +0100
commit805e68a4d2402e25d63ee6c9838f8043c39de559 (patch)
treee77b2673280284acfaca4a101e379f2ad7487996 /package.json
parent0bd4323f6adee6b295f57acb6c53ab416cdef6c9 (diff)
Improved frontend
Diffstat (limited to 'package.json')
-rw-r--r--package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json
index 9049aaf..76d05e8 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,7 @@
"scripts": {
"dev": "npm run watch & nodemon src/index.js --exec \"node -r dotenv/config -r babel-register\"",
"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",
+ "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*",
"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"