mirror of https://github.com/embarklabs/embark.git
consistent indentation
This commit is contained in:
parent
46c4aea520
commit
c8cd5f4229
|
@ -50,18 +50,18 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
const entry = Object.keys(embarkAssets)
|
const entry = Object.keys(embarkAssets)
|
||||||
.filter(key => key.match(/\.js?$/))
|
.filter(key => key.match(/\.js?$/))
|
||||||
.reduce((obj, key) => {
|
.reduce((obj, key) => {
|
||||||
obj[key] = embarkAssets[key]
|
obj[key] = embarkAssets[key]
|
||||||
.map(file => {
|
.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;
|
||||||
}
|
}
|
||||||
return file_path;
|
return file_path;
|
||||||
});
|
});
|
||||||
return obj;
|
return obj;
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
function resolve(pkgName) {
|
function resolve(pkgName) {
|
||||||
if (Array.isArray(pkgName)) {
|
if (Array.isArray(pkgName)) {
|
||||||
|
|
Loading…
Reference in New Issue