Skip to content

Conversation

@warnyul
Copy link
Owner

@warnyul warnyul commented Nov 30, 2024

  • Introduced a custom Webpack plugin (HtmlNewLineRemoverPlugin) to remove CRLF, CR, and LF characters from generated HTML files.
  • Hooked into HtmlWebpackPlugin's beforeEmit lifecycle to process the HTML and normalize line endings.
  • Updated webpack.config.js to include the new plugin in the plugins array for seamless integration.
  • Ensured compatibility with both Unix (\n) and Windows (\r\n) newline formats.

…rom HTML output

- Introduced a custom Webpack plugin (`HtmlNewLineRemoverPlugin`) to remove CRLF, CR, and LF characters from generated HTML files.
- Hooked into `HtmlWebpackPlugin`'s `beforeEmit` lifecycle to process the HTML and normalize line endings.
- Updated `webpack.config.js` to include the new plugin in the `plugins` array for seamless integration.
- Ensured compatibility with both Unix (`\n`) and Windows (`\r\n`) newline formats.
@github-actions
Copy link

Visit the preview URL for this PR (updated for commit 217ed07):

https://bvarga-fe600--pr64-remove-new-line-lsor3pu7.web.app

(expires Sat, 07 Dec 2024 21:00:17 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a3b1098a9eaf0750a134a339972f1df2a3969a8d

@warnyul warnyul merged commit 81a47cc into main Nov 30, 2024
2 checks passed
@warnyul warnyul deleted the remove-new-line branch November 30, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants