public function __construct()
{
parent::__construct();
if (file_exists($map_file = '../../Root/' . MODULE_NAME . '/map.json')) {
$this->map = json_decode(file_get_contents($map_file));
foreach ($this->map->res as $key => $value) {
$this->map->res->{str_replace('.less', '.css', $key)} = $value;
$this->map->res->{str_replace('.scss', '.css', $key)} = $value;
}
} else {
// map file not exists
}
}