We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 499db06 commit 2eea1ffCopy full SHA for 2eea1ff
scripts/prepare.ts
@@ -16,7 +16,7 @@ const copyIndexHtml = async (view: string) => {
16
const data = fs.readFileSync(resolveParent(`src/views/${view}/index.html`), 'utf-8').replace(
17
'<script type="module" src="./main.ts"></script>',
18
`<script type="module" src="http://localhost:3303/@vite/client"></script>
19
- <script type="module" src="http://localhost:3303/views/popup/main.ts"></script>`,
+ <script type="module" src="http://localhost:3303/views/${view}/main.ts"></script>`,
20
);
21
fs.writeFileSync(resolveParent(`dist/views/${view}/index.html`), data, 'utf-8');
22
console.info(`Stubbing '${view}' to '${getDirName()}/dist/views/${view}/index.html'`);
0 commit comments