Skip to content

Commit d8a8cfc

Browse files
committed
fix: build
1 parent c1ee4ec commit d8a8cfc

File tree

1 file changed

+2
-2
lines changed
  • src/routes/(blog)/i-wrote-my-module-bundler-ii-for-the-web

1 file changed

+2
-2
lines changed

src/routes/(blog)/i-wrote-my-module-bundler-ii-for-the-web/+page.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ So the `bundle.js` is added into the final HTML file like this:
104104
</html>
105105
```
106106
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.
108108
109109
Code wise, it is quite straightforward to implement this:
110110
@@ -133,7 +133,7 @@ function generateHTMLTemplate(htmlTemplatePath, outputFiles) {
133133
134134
Here, I used a `.replace(END_BODY_TAG, '...' + END_BODY_TAG)` to insert the `&lt;script&gt;` tags before the end of the `</body>` tag.
135135
136-
> <small>**Note:** Read [here](https://www.codecademy.com/forum_questions/55dee24b937676fb5e000139) to learn why it's a best practice to add `&lt;script&gt;` 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 `&lt;script&gt;` tag at the end of the `&lt;body&gt;` tag.
137137
138138
## Adding CSS
139139

0 commit comments

Comments
 (0)