ci: fix minification commands
This commit is contained in:
parent
6084a6c4ef
commit
3e8ae1bbae
1 changed files with 2 additions and 2 deletions
|
@ -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": {
|
||||||
|
|
Reference in a new issue