mirror of https://github.com/embarklabs/embark.git
rev entry
This commit is contained in:
parent
bfeee5eb4d
commit
48e67973cf
|
@ -47,18 +47,19 @@ 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]
|
||||||
let file_path = file.path;
|
.map(file => {
|
||||||
if (!file.path.match(/^\.\//)) {
|
let file_path = file.path;
|
||||||
file_path = './' + file_path;
|
if (!file.path.match(/^\.\//)) {
|
||||||
}
|
file_path = './' + file_path;
|
||||||
obj[file.path] = file_path;
|
}
|
||||||
});
|
return file_path;
|
||||||
return obj;
|
});
|
||||||
}, {});
|
return obj;
|
||||||
|
}, {});
|
||||||
|
|
||||||
// base config
|
// base config
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue