webpack: dynamic js build on update
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user