Make the Grunt 'concat' task more Windows-friendly

This commit is contained in:
Jeff Parsons 2014-11-05 15:55:28 -08:00 committed by jeffpar
commit 90542cc870

View file

@ -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, '');
}
}