kopia lustrzana https://github.com/c9/core
revert module-deps change braking makestatic.sh
rodzic
57ca776aea
commit
42e269a004
|
@ -346,11 +346,8 @@ function removeUseStrict(module) {
|
|||
}
|
||||
|
||||
function removeLicenceComments(module) {
|
||||
if (/\.(js|jsx|css|less)/.test(module.path)) {
|
||||
module.source = module.source.replace(/(\n|;|^|,)(?:[ \t]*(?:\/\*(?:[^*]|[*](?![/]))*?\*\/|\/\/.*\n))+(\n?)/gm, function(match, $1, $2) {
|
||||
return $1 == $2 ? $1 : $1 + $2;
|
||||
});
|
||||
}
|
||||
if (/\.(js|jsx|css|less)/.test(module.path))
|
||||
module.source = module.source.replace(/(?:(;)|\n|^)\s*\/\*[\d\D]*?\*\/|(\n|^)\s*\/\/.*/g, "$1");
|
||||
}
|
||||
function removeLicenceCommentsKeepLines(module) {
|
||||
if (/\.(js|jsx|css|less)/.test(module.path)) {
|
||||
|
|
Ładowanie…
Reference in New Issue