Commit 81a47cc
authored
feat: add HtmlNewLineRemoverPlugin to remove all newline characters from HTML output (#64)
- 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.1 parent ada4a65 commit 81a47cc
2 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
0 commit comments