mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
revert module-deps change braking makestatic.sh
This commit is contained in:
parent
57ca776aea
commit
42e269a004
7
node_modules/architect-build/module-deps.js
generated
vendored
7
node_modules/architect-build/module-deps.js
generated
vendored
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user