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>
This commit is contained in:
parent
e23ea28621
commit
f5954a015b
2 changed files with 6 additions and 2 deletions
|
@ -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"
|
||||
],
|
||||
|
|
|
@ -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 $@)
|
||||
|
|
Loading…
Reference in a new issue