Add converter for mjml template
This commit is contained in:
parent
d7b75737df
commit
11eca44374
1 changed files with 15 additions and 0 deletions
15
Makefile
15
Makefile
|
@ -25,3 +25,18 @@ clean: ## remove build artifacts
|
||||||
|
|
||||||
test: build
|
test: build
|
||||||
./test.sh
|
./test.sh
|
||||||
|
|
||||||
|
npm:
|
||||||
|
npm install
|
||||||
|
|
||||||
|
|
||||||
|
MJML_TEMPLATES=$(wildcard templates/*.mjml)
|
||||||
|
MJML_OUTPUT=$(patsubst %.mjml,%.mjml.html,$(MJML_TEMPLATES))
|
||||||
|
|
||||||
|
%.mjml.html: %.mjml
|
||||||
|
npx mjml $< --config.minify > $@
|
||||||
|
|
||||||
|
templates: $(MJML_OUTPUT)
|
||||||
|
|
||||||
|
.PHONY: templates
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue