Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

384
Views
vite build does not produce javascript file in dist folder

I am trying to deploy my vanilla JS app to Firebase hosting. I am using Vite as a build tool.

When I run it locally, it works fine. But when I deploy it to Firebase hosting, I realized that it was missing main.js file.

I checked my dist folder generated by Vite, and it was indeed missing main.js file.

I never ran into this issue before when using JS framework, but now I am with Vanilla JS.

How can I make sure that my build will contain javascript file as well?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Your script tag should look like this :

<script src="./main.js" type="module"></script>

There must be an attribute :

type="module"
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!