Skip to content

Commit

Permalink
Build: replace CRLF with LF during minify
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
timmywil committed Aug 11, 2023
1 parent 8be4c0e commit 48cc402
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/tasks/minify.js
Expand Up @@ -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 ) {

Expand Down

0 comments on commit 48cc402

Please sign in to comment.