diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-19 16:53:51 +0800 |
---|---|---|
committer | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-19 16:53:51 +0800 |
commit | 3a2b2de8141b5843892e64f9c165c1d7afb3724a (patch) | |
tree | 198cac94e835085d744b0cd922a48025a94fe480 | |
parent | 7b5b0709008e51de168947d9058a3e88a5fd3abc (diff) |
Makefile: generate Sourcemap for less files
[CI SKIP]
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ LDFLAGS += -X "gogs.io/gogs/internal/setting.BuildCommit=$(shell git rev-parse H CONF_FILES := $(shell find conf | sed 's/ /\\ /g') TEMPLATES_FILES := $(shell find templates | sed 's/ /\\ /g') PUBLIC_FILES := $(shell find public | sed 's/ /\\ /g') -LESS_FILES := $(wildcard public/less/gogs.less public/less/_*.less) +LESS_FILES := $(wildcard public/less/*.less) ASSETS_GENERATED := internal/assets/conf/conf_gen.go internal/assets/templates/templates_gen.go internal/assets/public/public_gen.go GENERATED := $(ASSETS_GENERATED) public/css/gogs.css @@ -69,7 +69,7 @@ internal/assets/public/public_gen.go: $(PUBLIC_FILES) less: public/css/gogs.css public/css/gogs.css: $(LESS_FILES) - @type lessc >/dev/null 2>&1 && lessc $< >$@ || echo "lessc command not found, skipped." + @type lessc >/dev/null 2>&1 && lessc --source-map "public/less/gogs.less" $@ || echo "lessc command not found or failed" clean: go clean -i ./... |