Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit48cc402

Browse files
authored
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.Closegh-5305
1 parent8be4c0e commit48cc402

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎build/tasks/minify.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ module.exports = ( grunt ) => {
3434
}
3535
);
3636

37-
grunt.file.write(dest,code);
37+
// Can't seem to get SWC to not use CRLF on Windows, so replace them with LF.
38+
grunt.file.write(dest,code.replace(/\r\n/g,"\n"));
3839

3940
if(sourceMapFilename){
4041

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp