From: techknowlogick Date: Wed, 15 May 2019 16:18:19 +0000 (-0400) Subject: Run lessc binary without having to install anything to node_modules X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3ebbfb103697472c730b1e1bc27cc87842497d12;p=gitea.git Run lessc binary without having to install anything to node_modules --- diff --git a/Makefile b/Makefile index 073e976361..ac61a58dd6 100644 --- 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/*); \