Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9233caf

Browse files
authored
Update public folder usage docs to clarify globals (#8299)
Added the relevant topic linked directly, instead of saying it's just in the next section. Adjusted the text so it sounds more like a recommendation rather than a requirement. The topic linked is basically explainer to how you'd reference it using the global window object and ways to avoid linter errors. Thus I used 'reference' to give users a hint of what it the linked page would be for.
1 parent 1959131 commit 9233caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docusaurus/docs/using-the-public-folder.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ The `public` folder is useful as a workaround for a number of less common cases:
6363
- You want to include a small script like [`pace.js`](https://github.hubspot.com/pace/docs/welcome/) outside of the bundled code.
6464
- Some library may be incompatible with Webpack and you have no other option but to include it as a `<script>` tag.
6565

66-
Note that if you add a `<script>` that declares global variables, you also need to read the next section on using them.
66+
Note that if you add a `<script>` that declares global variables, you should read the topic [Using Global Variables](using-global-variables.md) in the next section which explains how to reference them.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /