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 $@)