Browse Source

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>
Samuel Mehrbrodt 6 months ago
parent
commit
f5954a015b
2 changed files with 6 additions and 2 deletions
  1. 1 1
      browsersync-config.js
  2. 5 1
      loleaflet/Makefile.am

+ 1 - 1
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"
     ],

+ 5 - 1
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 $@)