File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -579,7 +579,7 @@ The `<script>` tag with the compiled code will be added to it automatically duri
579
579
You can also add other assets to the ` public ` folder.
580
580
581
581
Note that we normally encourage you to ` import ` assets in JavaScript files instead.
582
- For example, see the sections on [ adding a stylesheet] ( #adding-a-stylesheet ) and [ adding images and fonts] ( #adding-images-and-fonts ) .
582
+ For example, see the sections on [ adding a stylesheet] ( #adding-a-stylesheet ) and [ adding images and fonts] ( #adding-images-fonts- and-files ) .
583
583
This mechanism provides a number of benefits:
584
584
585
585
* Scripts and stylesheets get minified and bundled together to avoid extra network requests.
@@ -619,7 +619,7 @@ Keep in mind the downsides of this approach:
619
619
620
620
### When to Use the ` public ` Folder
621
621
622
- Normally we recommend importing [ stylesheets] ( #adding-a-stylesheet ) , [ images, and fonts] ( #adding-images-and-fonts ) from JavaScript.
622
+ Normally we recommend importing [ stylesheets] ( #adding-a-stylesheet ) , [ images, and fonts] ( #adding-images-fonts- and-files ) from JavaScript.
623
623
The ` public ` folder is useful as a workaround for a number of less common cases:
624
624
625
625
* You need a file with a specific name in the build output, such as [ ` manifest.webmanifest ` ] ( https://developer.mozilla.org/en-US/docs/Web/Manifest ) .
You can’t perform that action at this time.
0 commit comments