You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have one .ttf font file that I import both in TypeScript via import path from 'url:...' and in a CSS @font-face via src: url(...). Parcel outputs two copies of this file, with a different hash.
When using service-workers there is also a duplication issue.
When i use new Url(image.png,import.meta) somewhere in a js file and include the same image in a seperate CSS file the generated service-worker.js contains an array with two duplication images. It throws an error Uncaught (in promise) DOMException: Failed to execute 'addAll' on 'Cache': Cache.addAll(): duplicate requests
The files do have the same hash btw.
🐛 bug report
I have one
.ttf
font file that I import both in TypeScript viaimport path from 'url:...'
and in a CSS@font-face
viasrc: url(...)
. Parcel outputs two copies of this file, with a different hash.🎛 Configuration (.babelrc, package.json, cli command)
tsconfig.json
.parcelrc
🤔 Expected Behavior
One asset is included once in the output.
😯 Current Behavior
One asset is included twice in the output (as two identical files, but with a different hash).
The text was updated successfully, but these errors were encountered: