Skip to content

Why is it putting my files inside "src" folder and not "dist" folder? #880

Discussion options

You must be logged in to vote

Answer: It is because you have put all .html files inside "src" folder.

You will need to place all .html files outside of the "src" folder and change paths inside html files to the ts location:

Example inside < project-root >/popup.html:

<script type="module" src="src/popup/index.ts"></script>

But make sure the popup.html or any other html file is outside "src" folder.

If you have other files don't forget to make sure to include them in vite rollup input options.

Just rename the index.html to popup.html so you can have multiple html files so they don't conflict.

Also change path in background.ts if you do anything in there.

That's it! Just wanted to share my struggles.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ultimateshadsform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant