From 112f3d57f919a2cec3e56732928eff5adbee7769 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 22 May 2019 19:16:07 +0300 Subject: [PATCH] Add source maps to allow Sentry create more detailed stacktrace --- .travis.yml | 4 ++-- webpack.config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index d27531a..5cad4fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,8 +40,8 @@ before_deploy: - rm -rf dist/messages # Creating tar.gz and zip archives - cd dist - - tar -zcf ../dist.tar.gz * - - zip -rq ../dist.zip * + - tar -zcf ../dist.tar.gz --exclude="*.map" * + - zip -rq ../dist.zip * -x "*.map" - cd .. # Install sentry-cli - curl -sL https://sentry.io/get-cli/ | bash diff --git a/webpack.config.js b/webpack.config.js index 78d3212..a774240 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -276,7 +276,7 @@ if (isProduction) { }) ); - webpackConfig.devtool = false; + webpackConfig.devtool = 'hidden-source-map'; const ignoredPlugins = [ 'flag-icon-css',