Another build fix for Windows (sigh)

This commit is contained in:
Jeff Parsons 2014-11-05 16:23:32 -08:00 committed by jeffpar
commit b28dde8a9c

View file

@ -170,8 +170,8 @@ module.exports = function(grunt) {
options: { options: {
banner: '"use strict";\n\n', banner: '"use strict";\n\n',
process: function(src, filepath) { process: function(src, filepath) {
return "// " + filepath + "\r\n\r\n" + return "// " + filepath + "\n\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, ''); 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|$)/gm, '');
} }
} }
}, },
@ -181,8 +181,8 @@ module.exports = function(grunt) {
options: { options: {
banner: '"use strict";\n\n', banner: '"use strict";\n\n',
process: function(src, filepath) { process: function(src, filepath) {
return "// " + filepath + "\r\n\r\n" + return "// " + filepath + "\n\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, ''); 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|$)/gm, '');
} }
} }
} }