diff options
-rw-r--r-- | browsersync-config.js | 2 | ||||
-rw-r--r-- | loleaflet/Makefile.am | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/browsersync-config.js b/browsersync-config.js index c11f4d3705..9d82664085 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 4c09cc5909..cb7282248f 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 $@) |