Why is it putting my files inside "src" folder and not "dist" folder? #880
-
Why? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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:
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.