Loading debian/control +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.deb Uploaders: Leo Iannacone <l3on@ubuntu.com>, Julien Puydt <jpuydt@debian.org> Build-Depends: debhelper (>= 11), nodejs (>=6), webpack webpack (>= 4.7.0-2~) Standards-Version: 4.3.0 Homepage: https://github.com/mozilla/source-map Vcs-Git: https://salsa.debian.org/js-team/node-source-map.git Loading debian/patches/series +1 −0 Original line number Diff line number Diff line 001-fix-webpackg-file.patch 002-add-types.patch use-webpack4.patch debian/patches/use-webpack4.patch 0 → 100644 +39 −0 Original line number Diff line number Diff line --- a/webpack.config.js +++ b/webpack.config.js @@ -2,6 +2,7 @@ var fs = require("fs"); var path = require("path"); var webpack = require("webpack"); +var UglifyJsPlugin = require('uglifyjs-webpack-plugin'); var distDir = path.join(__dirname, "dist"); @@ -38,12 +39,22 @@ library: "sourceMap", libraryTarget: "umd", }, - plugins: [ - new webpack.optimize.UglifyJsPlugin({ - sourceMap: true - }) - ], - devtool: "#source-map" + devtool: "#source-map", + optimization: { + minimize: true, + minimizer: [ + new UglifyJsPlugin({ + cache: true, + parallel: true, + uglifyOptions: { + compress: false, + ecma: 6, + mangle: true + }, + sourceMap: true + }) + ] + } } ]; debian/rules +2 −2 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ override_dh_auto_build: mkdir -p dist webpack webpack --mode development override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) Loading @@ -22,4 +22,4 @@ else endif override_dh_auto_clean: rm -rf dist rm -rf dist node_modules/.cache Loading
debian/control +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.deb Uploaders: Leo Iannacone <l3on@ubuntu.com>, Julien Puydt <jpuydt@debian.org> Build-Depends: debhelper (>= 11), nodejs (>=6), webpack webpack (>= 4.7.0-2~) Standards-Version: 4.3.0 Homepage: https://github.com/mozilla/source-map Vcs-Git: https://salsa.debian.org/js-team/node-source-map.git Loading
debian/patches/series +1 −0 Original line number Diff line number Diff line 001-fix-webpackg-file.patch 002-add-types.patch use-webpack4.patch
debian/patches/use-webpack4.patch 0 → 100644 +39 −0 Original line number Diff line number Diff line --- a/webpack.config.js +++ b/webpack.config.js @@ -2,6 +2,7 @@ var fs = require("fs"); var path = require("path"); var webpack = require("webpack"); +var UglifyJsPlugin = require('uglifyjs-webpack-plugin'); var distDir = path.join(__dirname, "dist"); @@ -38,12 +39,22 @@ library: "sourceMap", libraryTarget: "umd", }, - plugins: [ - new webpack.optimize.UglifyJsPlugin({ - sourceMap: true - }) - ], - devtool: "#source-map" + devtool: "#source-map", + optimization: { + minimize: true, + minimizer: [ + new UglifyJsPlugin({ + cache: true, + parallel: true, + uglifyOptions: { + compress: false, + ecma: 6, + mangle: true + }, + sourceMap: true + }) + ] + } } ];
debian/rules +2 −2 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ override_dh_auto_build: mkdir -p dist webpack webpack --mode development override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) Loading @@ -22,4 +22,4 @@ else endif override_dh_auto_clean: rm -rf dist rm -rf dist node_modules/.cache