mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-11-01 18:04:12 +08:00
Hookimng rjsmin in, at the revision tested, app.js shrank from
151206 to 148202
This commit is contained in:
1 parent
445e4427f3
commit
71ceae44c5
2 files changed
+2
-1
No files matched your search
@@ -167,7 +167,7 @@ SRCS += \
|
|||||||
|
|
||||||
OBJS = ${SRCS:%.c=$(BUILDDIR)/%.rel}
|
OBJS = ${SRCS:%.c=$(BUILDDIR)/%.rel}
|
||||||
DEPS := ${SRCS:%.c=$(BUILDDIR)/%.d}
|
DEPS := ${SRCS:%.c=$(BUILDDIR)/%.d}
|
||||||
HTML := $(shell find html -name '*.js' -or -name '*.html' -or -name '*.svg' -or -name '*.css' -or -name '*.ico')
|
HTML := $(shell find html -name '*.html' -or -name '*.svg' -or -name '*.css' -or -name '*.ico')
|
||||||
|
|
||||||
# Minified copy of the web UI sources, used as the fileadder input.
|
# Minified copy of the web UI sources, used as the fileadder input.
|
||||||
# The raw html/ sources stay untouched for development; the minified
|
# The raw html/ sources stay untouched for development; the minified
|
||||||
@@ -187,6 +187,7 @@ $(HTML_MIN_STAMP): $(HTML) $(HTML_MIN_LIST) tools/minify.py $(if $(wildcard $(HT
|
|||||||
rm -rf $(HTML_MIN)
|
rm -rf $(HTML_MIN)
|
||||||
mkdir -p $(HTML_MIN)
|
mkdir -p $(HTML_MIN)
|
||||||
@for f in $(HTML); do python3 tools/minify.py $$f $(HTML_MIN)/$$(basename $$f) || exit 1; done
|
@for f in $(HTML); do python3 tools/minify.py $$f $(HTML_MIN)/$$(basename $$f) || exit 1; done
|
||||||
|
python3 tools/rjsmin.py < html/app.js > $(HTML_MIN)/app.js || exit 1
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
html_data.c html_data.h &: $(HTML_MIN_STAMP) | tools
|
html_data.c html_data.h &: $(HTML_MIN_STAMP) | tools
|
||||||
|
|||||||
Regular → Executable
File mode changed.
Reference in new issue
Block a user