'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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
