Skip to content

Commit 2eea1ff

Browse files
committed
fix(scripts): fix typo in prepare script
1 parent 499db06 commit 2eea1ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/prepare.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const copyIndexHtml = async (view: string) => {
1616
const data = fs.readFileSync(resolveParent(`src/views/${view}/index.html`), 'utf-8').replace(
1717
'<script type="module" src="./main.ts"></script>',
1818
`<script type="module" src="http://localhost:3303/@vite/client"></script>
19-
<script type="module" src="http://localhost:3303/views/popup/main.ts"></script>`,
19+
<script type="module" src="http://localhost:3303/views/${view}/main.ts"></script>`,
2020
);
2121
fs.writeFileSync(resolveParent(`dist/views/${view}/index.html`), data, 'utf-8');
2222
console.info(`Stubbing '${view}' to '${getDirName()}/dist/views/${view}/index.html'`);

0 commit comments

Comments
 (0)