From 42e269a004575547756ec99afa85979d9f6892fe Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 27 Oct 2015 22:25:57 +0400 Subject: [PATCH] revert module-deps change braking makestatic.sh --- node_modules/architect-build/module-deps.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/node_modules/architect-build/module-deps.js b/node_modules/architect-build/module-deps.js index daae178c..083429bd 100644 --- a/node_modules/architect-build/module-deps.js +++ b/node_modules/architect-build/module-deps.js @@ -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)) {