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
Copy file name to clipboardExpand all lines: src/routes/(blog)/i-wrote-my-module-bundler-ii-for-the-web/+page.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ So the `bundle.js` is added into the final HTML file like this:
104
104
</html>
105
105
```
106
106
107
-
> <small>**NOTE:** the preceding slash (`/`) allows us to always fetch the JavaScript file relative from the root path. This is extremely useful for Single Page Application (SPA), where we serve the same HTML file irrelevant to the URL path.</small>
107
+
> **NOTE:** the preceding slash (`/`) allows us to always fetch the JavaScript file relative from the root path. This is extremely useful for Single Page Application (SPA), where we serve the same HTML file irrelevant to the URL path.
108
108
109
109
Code wise, it is quite straightforward to implement this:
110
110
@@ -133,7 +133,7 @@ function generateHTMLTemplate(htmlTemplatePath, outputFiles) {
133
133
134
134
Here, I used a `.replace(END_BODY_TAG, '...'+END_BODY_TAG)` to insert the `<script>` tags before the end of the `</body>` tag.
135
135
136
-
> <small>**Note:** Read [here](https://www.codecademy.com/forum_questions/55dee24b937676fb5e000139) to learn why it's a best practice to add `<script>` tag at the end of the `<body>` tag.</small>
136
+
> **Note:** Read [here](https://www.codecademy.com/forum_questions/55dee24b937676fb5e000139) to learn why it's a best practice to add `<script>` tag at the end of the `<body>` tag.
0 commit comments