rev entry

This commit is contained in:
Michael Bradley, Jr 2018-08-17 16:45:47 -05:00
parent bfeee5eb4d
commit 48e67973cf
1 changed files with 13 additions and 12 deletions

View File

@ -47,15 +47,16 @@ try {
versions = []; versions = [];
} }
const entry = Object.keys(embarkAssets).reduce((obj, key) => { const entry = Object.keys(embarkAssets)
embarkAssets[key] .filter(key => key.match(/\.js?$/))
.filter(file => file.filename.match(/\.jsx?$/)) .reduce((obj, key) => {
.forEach(file => { obj[key] = embarkAssets[key]
.map(file => {
let file_path = file.path; let file_path = file.path;
if (!file.path.match(/^\.\//)) { if (!file.path.match(/^\.\//)) {
file_path = './' + file_path; file_path = './' + file_path;
} }
obj[file.path] = file_path; return file_path;
}); });
return obj; return obj;
}, {}); }, {});