aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/tasks/minify.js3
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 ) {