-
Notifications
You must be signed in to change notification settings - Fork 0
/
broken.html
32 lines (32 loc) · 1.42 KB
/
broken.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Broken external image link</title>
<link rel="stylesheet" href="/assets/entry-point-1.127b0f81.css">
<!-- <script type="module" src="/assets/hacked-entry-point-1.js"></script> -->
<script type="module" src="/assets/entry-point-1.e49989cd.js"></script>
</head>
<body>
<p>
This file would normally be rendered by a backend server. It would consume info from
the `dist/manifest.json` generated by vue + vite, and inject the correct styles and scripts
into the right places of this document.
</p>
<p>
For this demonstration, the style and script links have been manually edited into place,
and we'll assume that when you run `npm run build`, it will generate the same hash codes, else
you'll have to update this document.
</p>
<p>
Without further ado, the "app" div follows below, where we'll mount our application `Page1.vue`
which contains an external `<img>` link, and that's all. It would be fine if the image were
simply broken, since it is supped to be external. But the problem is that the `js` code that is
loaded attempts to do an `import` of that image, and that code breaks the client, and the app
is not ever loaded.
</p>
<hr/>
<div id="app"></div>
</body>
</html>