Parcel: Don't rename build files

Created on 5 Sep 2019  ยท  1Comment  ยท  Source: parcel-bundler/parcel

โ” Question


Whenever I build, Parcel creates new files, smth like src.b3849364.js and src.fbed56e1.css. But the filenames are different each time.
Is there a way to make Parcel always build with the same name?

๐Ÿ”ฆ Context


The prob is that I always build to the same folder, thus with each build it gets clattered with old versions of these files. Which is not good for my pipeline.

๐Ÿ’ป Code Sample

๐ŸŒ Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.12.3"
| Operating System | macos 10.14

Question

>All comments

These are content hashes so no, it's to prevent duplicates and allow long term caching on for example a cdn.

Parcel 2 will allow you to write/use custom namer plugins which let you control the naming of bundles.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

will-stone picture will-stone  ยท  3Comments

davidnagli picture davidnagli  ยท  3Comments

oliger picture oliger  ยท  3Comments

davidnagli picture davidnagli  ยท  3Comments

Niggler picture Niggler  ยท  3Comments