Commit 41619e12 authored by Praveen Arimbrathodiyil's avatar Praveen Arimbrathodiyil
Browse files

Build with webpack 4

parent ef5e8ad2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ Build-Depends:
 mocha <!nocheck>,
 node-babel-cli,
 pigz,
 webpack <!nocheck>,
 webpack (>= 4~) <!nocheck>,
Standards-Version: 4.4.0
Homepage: https://github.com/anvilresearch/json-document
Vcs-Browser: https://salsa.debian.org/js-team/node-trust-json-document

debian/patches/series

0 → 100644
+1 −0
Original line number Diff line number Diff line
webpack4.patch
+11 −0
Original line number Diff line number Diff line
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -11,7 +11,7 @@
     libraryTarget: 'var'
   },
   module: {
-    loaders: [
+    rules: [
       {
         test: /\.json$/,
         loader: 'json'
+4 −0
Original line number Diff line number Diff line
@@ -24,6 +24,10 @@ override_dh_auto_test:
override_dh_installdocs:
	dh_installdocs --all -- $(DOCS)

override_dh_auto_clean:
	rm -rf node_modules/.cache
	dh_auto_clean

debian/js/%.min.js:
	babeljs src -d lib
	webpack -d --output-filename json-document.js