Injected variable wrapped with double quotes
Rc85 opened this issue ยท 1 comments
Rc85 commented
Current behaviour ๐ฃ
Inject a string variable to my HTML file has double quotes around it.
Expected behaviour โ๏ธ
Should not have double quotes.
Reproduction Example ๐พ
Environment ๐ฅ
https://codesandbox.io/s/wild-night-mqm26?file=/webpack.config.js
- Create a new terminal
- Execute
yarn start
to run webpack serve - Press refresh in the sandbox browser
- See "This is foo" wrapped in double quotes
The codesandbox uses webpack 5. The one I'm using in my development is webpack 4. Both have double quotes.
Rc85 commented
JSON.stringify adds the double quote.