]> source.dussan.org Git - gitea.git/commitdiff
Run lessc binary without having to install anything to node_modules
authortechknowlogick <techknowlogick@gitea.io>
Wed, 15 May 2019 16:18:19 +0000 (12:18 -0400)
committerGitHub <noreply@github.com>
Wed, 15 May 2019 16:18:19 +0000 (12:18 -0400)
Makefile

index 073e9763618cdd0eb52d233cc4c20e3141bce52f..ac61a58dd651f907ed183006390284ee5518543a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -380,8 +380,8 @@ css:
                exit 1; \
        fi;
        npx lesshint public/less/
-       npx lessc --clean-css="--s0 -b" public/less/index.less public/css/index.css
-       $(foreach file, $(filter-out public/less/themes/_base.less, $(wildcard public/less/themes/*)),npx lessc --clean-css="--s0 -b" public/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;)
+       npx -p less lessc --clean-css="--s0 -b" public/less/index.less public/css/index.css
+       $(foreach file, $(filter-out public/less/themes/_base.less, $(wildcard public/less/themes/*)),npx -p less lessc --clean-css="--s0 -b" public/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;)
        npx postcss --use autoprefixer --no-map --replace public/css/*
 
        @diff=$$(git diff public/css/*); \