From 3e8ae1bbaebea5190f70b1f4415467d2636d4ab1 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Mon, 26 Apr 2021 11:44:23 +0100 Subject: [PATCH] ci: fix minification commands --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fbddb8d..5f47a41 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "lint:md": "markdownlint '*.md'", "lint:md:fix": "npm run lint:md -- --fix", "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:js": "for f in ./src/js/*.js; do npx minify $f > ./dist/js/$(basename $f .js).min.js; 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 ./dist/*/js/*.js; do echo \"Minifying $f...\"; minify $f > $(dirname $f)/$(basename $f .js).min.js; done" }, "husky": { "hooks": {