Browsersync: Also sync html files

Change-Id: I55db923954fc0c59e1726640c980a539a12293ba
Reviewed-on: https://gerrit.libreoffice.org/72455
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
libreoffice-6-3
Samuel Mehrbrodt 2019-05-17 11:26:47 +02:00
parent e23ea28621
commit f5954a015b
2 changed files with 6 additions and 2 deletions

View File

@ -16,7 +16,7 @@ module.exports = {
"ui": {
"port": 3001
},
"files": ["loleaflet/dist/**/*.css", "loleaflet/dist/**/*.js"],
"files": ["loleaflet/dist/**/*.css", "loleaflet/dist/**/*.js", "loleaflet/dist/*.html"],
"watchEvents": [
"change"
],

View File

@ -252,7 +252,11 @@ $(builddir)/dist/images/%: $(srcdir)/images/%
$(builddir)/dist/%.html: $(srcdir)/html/%.html
@mkdir -p $(dir $@)
@cp $< $@
@if test -z '$(ENABLE_BROWSERSYNC)'; then \
`cp $< $@`; \
else \
`ln -sf $(abs_srcdir)/$< $@`; \
fi
$(builddir)/dist/src/%.js: $(srcdir)/src/%.js
@mkdir -p $(dir $@)