diff options
author | Marvin Borner | 2019-02-23 11:57:41 +0100 |
---|---|---|
committer | Marvin Borner | 2019-02-23 11:57:41 +0100 |
commit | f817a64349fdf822718d47f155b00e9017f90bbf (patch) | |
tree | 2234808cd50ea50168ea74b7fb7db9d6b7f8f176 /package.json | |
parent | 9e705de2a836498073327a9d0b8211e015d7d7dc (diff) |
Fixed build
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json index 16a49ca..9049aaf 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "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", "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/temp.css && browserify public/scripts/main.js -o dist/temp.js && minify dist/temp.css > dist/app.css && minify dist/temp.js > dist/app.js && rm dist/temp.* && pug views/index.pug --out dist", - "single": "rm -rf dist/* && node-sass public/styles/main.sass dist/temp.css && minify dist/temp.css > dist/app.css && 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" + "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" }, "keywords": [ "express", |