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

354
Views
How to build unhashed files in a 'dist/' folder with ParcelJS (v2)

I'm trying to bundle some scss and js files into a dist/main.css and a dist/main.js file using Parcel (v2). I don't want any hashes within the file names (just main.css but not main.182e5d44.css and main.js instead of main.3dcf9355.js).

If I use a simple html file as an entry

parcel build --no-content-hash main.html

Parcel returns all files inside the dist/ directory but uses hashes within the file names.

dist/main.html            219 B    748ms
dist/main.9844a242.css     89 B    853ms
dist/main.b59b001f.js      61 B    599ms

If I use the scss and the js file as entry points

parcel build --no-content-hash assets/scss/main.scss assets/js/main.js

it doesn't creates hashes of course but puts the files into subdirectories

dist/scss/main.css    62 B    890ms
dist/js/main.js       34 B    575ms.

What's the build command to achieve my desired output:

dist/main.css
dist/main.js
about 4 years ago · Juan Pablo Isaza
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!