diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2023-08-10 21:13:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 21:13:24 -0400 |
commit | 48cc402a917d6011c7d3e75f779f11ef91b474fb (patch) | |
tree | 55d9fa6505ea7f9d19fd73d53170d870679a0ee0 | |
parent | 8be4c0e4f89d6c8f780e5937a0534921d8c7815e (diff) | |
download | jquery-48cc402a917d6011c7d3e75f779f11ef91b474fb.tar.gz jquery-48cc402a917d6011c7d3e75f779f11ef91b474fb.zip |
Build: replace CRLF with LF during minify
- SWC is not respecting the git setting and does not have
an option to force LF. This fixes the build on Windows.
Close gh-5305
-rw-r--r-- | build/tasks/minify.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/tasks/minify.js b/build/tasks/minify.js index 1a6ddbd4a..6d3c6c568 100644 --- a/build/tasks/minify.js +++ b/build/tasks/minify.js @@ -34,7 +34,8 @@ module.exports = ( grunt ) => { } ); - grunt.file.write( dest, code ); + // Can't seem to get SWC to not use CRLF on Windows, so replace them with LF. + grunt.file.write( dest, code.replace( /\r\n/g, "\n" ) ); if ( sourceMapFilename ) { |