From f5954a015be8a11a093f1b5528ef6811015f650d Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Fri, 17 May 2019 11:26:47 +0200 Subject: [PATCH] Browsersync: Also sync html files Change-Id: I55db923954fc0c59e1726640c980a539a12293ba Reviewed-on: https://gerrit.libreoffice.org/72455 Reviewed-by: Samuel Mehrbrodt Tested-by: Samuel Mehrbrodt --- browsersync-config.js | 2 +- loleaflet/Makefile.am | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/browsersync-config.js b/browsersync-config.js index c11f4d370..9d8266408 100644 --- a/browsersync-config.js +++ b/browsersync-config.js @@ -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" ], diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am index 4c09cc590..cb7282248 100644 --- a/loleaflet/Makefile.am +++ b/loleaflet/Makefile.am @@ -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 $@)