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) => ({