webpack: dynamic js build on update

This commit is contained in:
2021-08-25 03:35:51 +09:00
parent e5b51dcd16
commit 5b2b01328a
107 changed files with 288 additions and 419 deletions
+4 -4
View File
@@ -199,7 +199,7 @@ class che_건국 extends Command\GeneralCommand
public function getJSFiles(): array
{
return [
'js/colorSelect.js'
'dist_js/colorSelect.js'
];
}
@@ -216,14 +216,14 @@ class che_건국 extends Command\GeneralCommand
foreach(GetNationColors() as $color){
$colorUsed[$color] = 0;
}
foreach(getAllNationStaticInfo() as $nation){
if($nation['level'] <= 0){
continue;
}
$colorUsed[$nation['color']]++;
}
$colorUsedCnt = 0;
foreach($colorUsed as $color=>$used){
if($used){
@@ -231,7 +231,7 @@ class che_건국 extends Command\GeneralCommand
}
$colorUsedCnt += 1;
}
//색깔이 다 쓰였으면 그냥 모두 허용
if($colorUsedCnt === count($colorUsed)){
foreach(array_keys($colorUsed) as $color){