packages/cli: pick up bundle html template from next to index

This commit is contained in:
Patrik Oldsberg
2020-05-16 19:04:51 +02:00
parent 65220f3ef0
commit f3b54ae618
+1 -1
View File
@@ -35,7 +35,7 @@ export function resolveBundlingPaths(options: BundlingPathsOptions) {
return paths.resolveTarget(`${path}.js`);
};
let targetHtml = paths.resolveTarget('dev/index.html');
let targetHtml = paths.resolveTarget(`${entry}.html`);
if (!existsSync(targetHtml)) {
targetHtml = paths.resolveOwn('templates/serve_index.html');
}