ci: fix minification commands

This commit is contained in:
Ben Goldsworthy 2021-04-26 11:44:23 +01:00
parent 6084a6c4ef
commit 3e8ae1bbae

View file

@ -16,8 +16,8 @@
"lint:md": "markdownlint '*.md'", "lint:md": "markdownlint '*.md'",
"lint:md:fix": "npm run lint:md -- --fix", "lint:md:fix": "npm run lint:md -- --fix",
"minify": "npm run minify:css && npm run minify:js", "minify": "npm run minify:css && npm run minify:js",
"minify:css": "for f in ./tmp/css/*.css; do npx minify $f > ./dist/css/$(basename $f .css).min.css; done", "minify:css": "for f in ./dist/css/*.css; do echo \"Minifying $f...\"; minify $f > $(dirname $f)/$(basename $f .css).min.css; done",
"minify:js": "for f in ./src/js/*.js; do npx minify $f > ./dist/js/$(basename $f .js).min.js; done" "minify:js": "for f in ./dist/*/js/*.js; do echo \"Minifying $f...\"; minify $f > $(dirname $f)/$(basename $f .js).min.js; done"
}, },
"husky": { "husky": {
"hooks": { "hooks": {