From 2d0ee86ef35d631b68bee1ce51225b08e221eaef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Gastinel?= <264859180+gastinelt@users.noreply.github.com> Date: Mon, 12 Oct 2026 15:31:56 +0200 Subject: [PATCH] build : normalise la source en LF --- tools/build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build.js b/tools/build.js index 047557e..7a35528 100644 --- a/tools/build.js +++ b/tools/build.js @@ -81,7 +81,9 @@ function build() { fs.rmSync(DIST, { recursive: true, force: true }); const srcPath = path.join(ROOT, 'index.html'); - const src = fs.readFileSync(srcPath, 'utf8'); + // git (autocrlf) peut rendre la source en CRLF : on raisonne toujours en LF, + // comme la prod, pour que les empreintes du garde-fou restent stables. + const src = fs.readFileSync(srcPath, 'utf8').replace(/\r\n/g, '\n'); if (/
]|