adding style= can cause non-hashed named js files to be included that dont exist
no babel, no package.json.. cli is parcel one.html
This works fine if i have no style=
I see the dist/one.html adding a "two.js" include -- that file does not exist so i get a browser and hmr issue.
$ cat one.html
<span style='font-size: 1em;'></span>
<a href='two.html'>link</a>
$ cat two.html
<span style='font-size: 1em;'></span>
$ parcel one.html
Server running at http://localhost:1234
✨ Built in 687ms.
^C
$ cat dist/one.html
<script src="/two.js"></script><span style="font-size: 1em;"></span>
<a href="/two.html">link</a>
$ ls dist
one.html one.js one.map two.html
see that <script src="/two.js"> ? what is that from?
the crazy part is that if i remove style= from the html files, the problem goes away.
$ parcel -V
1.10.1
That's the hmr code for page refreshes...
If it really annoys you use --no-hmr
It shouldn't be there in production
Then why is that file not generated? It totally messes up the hmr by not being there. I'd like the hmr to work, but it doesn't because the file is missing.
Ow now I see, the original issue description looked more like a confusion about why the file was there rather than it was missing...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.
Most helpful comment
Then why is that file not generated? It totally messes up the hmr by not being there. I'd like the hmr to work, but it doesn't because the file is missing.