From 392bff0dbd8f098ebb4bab01109071c431f480c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20Jim=C3=A9nez?= Date: Tue, 10 Jul 2018 11:37:22 +0200 Subject: [PATCH] reenable production sourcemaps --- NEWS.md | 1 + webpack/v4/webpack.prod.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 7588c2fa85..fe6d985d2c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -77,6 +77,7 @@ This release introduces a new API Key system. In order to migrate existing users * Triggering ghost tables and common data when visiting the dashboard (#14010) ### Internals +* Re-enable sourcemaps in production, they were broken since the move to webpack v4 * Add `internal-carto.js` to transpilation process in Webpack (https://github.com/CartoDB/cartodb/pull/14117) * Create a new JS bundle for Lockout page (https://github.com/CartoDB/cartodb/issues/14019) * Update to Webpack 4, move CSS processing from Grunt to Webpack (https://github.com/CartoDB/cartodb/pull/14033) diff --git a/webpack/v4/webpack.prod.config.js b/webpack/v4/webpack.prod.config.js index d8c8e6ed05..8611c3d287 100644 --- a/webpack/v4/webpack.prod.config.js +++ b/webpack/v4/webpack.prod.config.js @@ -21,8 +21,8 @@ module.exports = merge(baseConfig, { new UglifyJsPlugin({ cache: false, parallel: true, + sourceMap: true, uglifyOptions: { - sourceMap: true, keep_fnames: true, output: { ascii_only: true,