webpack / webpack

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
https://webpack.js.org
MIT License
64.3k stars 8.73k forks source link

output,charset: true does not work #18410

Closed alexstock1 closed 3 weeks ago

alexstock1 commented 1 month ago

Bug report

What is the current behavior?

output,charset: true does not add to charset="utf-8" to script tag

https://webpack.js.org/configuration/output/#outputcharset

Other relevant information: webpack version: 5.91 Node.js version: any version Operating System: any os

uditjainstjis commented 1 month ago

yes charset:true cant add to charset="utf-8", as charset="utf-8" is added by boolean = true

alexander-akait commented 3 weeks ago

Thank you for creating this issue. However, issues need to follow one of our templates so that we can clearly understand your particular circumstances.

Please help us help you by recreating the issue using one of our templates.