Skip to content

Commit

Permalink
fix(build): handle no scripts in angular (#182)
Browse files Browse the repository at this point in the history
Fixes #179
  • Loading branch information
mhartington authored and imhoffd committed Oct 22, 2019
1 parent 90ffd14 commit 388e1ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions builders/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ export function prepareBrowserConfig(
options.consolelogsPort
} }`
);
if (optionsStarter.scripts) {
optionsStarter.scripts.push({
if (!optionsStarter.scripts) {
optionsStarter.scripts = [];
}
optionsStarter.scripts.push({
input: configPath,
bundleName: 'consolelogs',
lazy: false,
});
optionsStarter.scripts.push({
optionsStarter.scripts.push({
input: getSystemPath(
join(
normalize(__dirname),
Expand All @@ -78,7 +80,6 @@ export function prepareBrowserConfig(
bundleName: 'consolelogs',
lazy: false,
});
}
}

if (options.cordovaMock) {
Expand Down

0 comments on commit 388e1ad

Please sign in to comment.