From 3ebbfb103697472c730b1e1bc27cc87842497d12 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 15 May 2019 12:18:19 -0400 Subject: [PATCH] Run lessc binary without having to install anything to node_modules --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/*); \ -- 2.39.5