Skip to content

Commit 56d0618

Browse files
authored
docs(configuration): document output.charset (#3918)
1 parent 87edded commit 56d0618

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/content/configuration/output.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ module.exports = {
9292
```
9393

9494

95+
## `output.charset`
96+
97+
`boolean = true`
98+
99+
Tells webpack to add `charset="utf-8"` to the HTML `<script>` tag.
100+
101+
T> Although `charset` attribute for `<script>` tag was [deprecated](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#Deprecated_attributes), webpack still adds it by default for compatibility with non-modern browsers.
102+
95103
## `output.chunkFilename`
96104

97105
`string = '[id].js'`

0 commit comments

Comments
 (0)