mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
This commit is contained in:
parent
8be4c0e4f8
commit
48cc402a91
@ -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 ) {
|
if ( sourceMapFilename ) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user