Commit c177c223 authored by Praveen Arimbrathodiyil's avatar Praveen Arimbrathodiyil
Browse files

Build with webpack 4

parent e6616a8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ Build-Depends:
 pigz,
 rename,
 node-uglify (>= 2),
 webpack,
 webpack (>= 4~),
Standards-Version: 4.3.0
Homepage: https://github.com/mapbox/leaflet-image
Vcs-Browser: https://salsa.debian.org/js-team/leaflet-image
+1 −1
Original line number Diff line number Diff line
debian/js/* leaflet-image.js /usr/share/javascript/leaflet
debian/js/* dist/leaflet-image.js /usr/share/javascript/leaflet
+8 −2
Original line number Diff line number Diff line
@@ -15,9 +15,9 @@ endif
debian/js/%.min.js: %.js
	mkdir --parents debian/js
	uglifyjs --compress --mangle \
		--in-source-map $<.map \
		--in-source-map dist/$<.map \
		--source-map $@.map \
		--output $@ -- $<
		--output $@ -- dist/$<

# pre-compress for browser use
%.gz: %
@@ -38,10 +38,16 @@ override_dh_auto_build: $(DOCS) \

$(STEM).js: index.js
	webpack --config debian/webpack.config.js \
		--mode development \
		--output-library leaflet-image \
		--output-filename $@ -- $<

override_dh_installdocs:
	dh_installdocs --all -- $(DOCS)

override_dh_auto_clean:
	rm -rf node_modules/.cache \
	dist README.html README.txt
	dh_auto_clean

.SECONDARY: