From 3e77418fd7ef89a738dca27d866a7bacc29db179 Mon Sep 17 00:00:00 2001 From: Zoe Date: Thu, 23 Apr 2020 17:55:21 +0100 Subject: [PATCH] Turn on source mapping, copy decoder-ring over to bundle --- scripts/copy-res.js | 1 + webpack.config.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/copy-res.js b/scripts/copy-res.js index e25d07ff..d1fb4946 100755 --- a/scripts/copy-res.js +++ b/scripts/copy-res.js @@ -67,6 +67,7 @@ const COPY_LIST = [ ["node_modules/olm/olm_legacy.js", "webapp", { directwatch: 1 }], ["./config.json", "webapp", { directwatch: 1 }], ["contribute.json", "webapp"], + ["node_modules/matrix-react-sdk/res/decoder-ring/**", "webapp/decoder-ring"], ]; const parseArgs = require('minimist'); diff --git a/webpack.config.js b/webpack.config.js index 5bde203e..96a0ccd3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,6 +19,8 @@ module.exports = (env, argv) => { // This makes the sourcemaps human readable for developers. We use eval-source-map // because the plain source-map devtool ruins the alignment. development['devtool'] = 'eval-source-map'; + } else { + development['devtool'] = 'nosources-source-map'; } // Resolve the directories for the react-sdk and js-sdk for later use. We resolve these early so we