Don't add {css,js}.map from dapps (#6931)

This commit is contained in:
Jaco Greeff 2017-10-30 14:36:37 +01:00 committed by GitHub
parent 39e27076ad
commit 152e56c5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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