JohnBra / vite-web-extension

Vite web extension template. Setup with React, Typescript and TailwindCSS
MIT License
504 stars 79 forks source link

Renaming the extension ts to js #1

Closed moshOntong-IT closed 2 years ago

moshOntong-IT commented 2 years ago

So I have to change the extension file of my content.ts to content js. The problem is, when I build my project the index js in dist/src/page/content is empty

moshOntong-IT commented 2 years ago

I solved it, I just forgot to call the function

JohnBra commented 2 years ago

So I have to change the extension file of my content.ts to content js. The problem is, when I build my project the index js in dist/src/page/content is empty

Hi,

From what you have written it sounds like you added a file named 'content.ts'. Make sure you also have 'index.ts' as provided in the template and import/implement your logic there.

If that doesn't help, please provide a minimal reproduction of your issue, so I can look into it.