sass
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/** @var \App\App $app */
|
/** @var \App\App $app */
|
||||||
$app = app();
|
$app = app();
|
||||||
|
$app->assets()->addStyle('/assets/css/app.css', 'early');
|
||||||
|
$app->assets()->addScript('/assets/js/app.js', 'footer', true);
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|||||||
@@ -5,10 +5,13 @@ namespace App;
|
|||||||
|
|
||||||
class Config
|
class Config
|
||||||
{
|
{
|
||||||
|
public string $assetVersion;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public array $db,
|
public array $db,
|
||||||
public bool $dbEnabled = true
|
public bool $dbEnabled = true
|
||||||
) {
|
) {
|
||||||
|
$this->assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function primaryUrl(): string
|
public function primaryUrl(): string
|
||||||
|
|||||||
Reference in New Issue
Block a user