Make the Grunt 'concat' task more Windows-friendly
This commit is contained in:
parent
4a11eb6331
commit
90542cc870
1 changed files with 2 additions and 2 deletions
|
|
@ -170,7 +170,7 @@ module.exports = function(grunt) {
|
|||
options: {
|
||||
banner: '"use strict";\n\n',
|
||||
process: function(src, filepath) {
|
||||
return "// " + filepath + "\n" +
|
||||
return "// " + filepath + "\r\n\r\n" +
|
||||
src.replace(/(^|\n)[ \t]*(['"])use strict\2;?\s*/g, '$1').replace(/[ \t]*if\s*\(typeof\s+(module|APP_PCJS)\s*!==\s*(['"])undefined\2\)\s*(\{[^}]*}|[^\n]*)(\n|$)/g, '');
|
||||
}
|
||||
}
|
||||
|
|
@ -181,7 +181,7 @@ module.exports = function(grunt) {
|
|||
options: {
|
||||
banner: '"use strict";\n\n',
|
||||
process: function(src, filepath) {
|
||||
return "// " + filepath + "\n" +
|
||||
return "// " + filepath + "\r\n\r\n" +
|
||||
src.replace(/(^|\n)[ \t]*(['"])use strict\2;?\s*/g, '$1').replace(/[ \t]*if\s*\(typeof\s+(module|APP_PCJS)\s*!==\s*(['"])undefined\2\)\s*(\{[^}]*}|[^\n]*)(\n|$)/g, '');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue