From 152e56c5d9859072350db7ca34ccd2b93722945e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 30 Oct 2017 14:36:37 +0100 Subject: [PATCH] Don't add {css,js}.map from dapps (#6931) --- js/webpack/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/webpack/app.js b/js/webpack/app.js index fa9ace6c4..d9ec3e48a 100644 --- a/js/webpack/app.js +++ b/js/webpack/app.js @@ -209,8 +209,11 @@ module.exports = { : Api.util.sha3(dapp.url); return [ - 'index.html', 'dist.css', 'dist.css.map', 'dist.js', 'dist.js.map' + 'index.html', 'dist.css', 'dist.js', + isProd ? null : 'dist.css.map', + isProd ? null : 'dist.js.map' ] + .filter((file) => file) .map((file) => path.join(dir, file)) .filter((from) => fs.existsSync(from)) .map((from) => ({