diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-20 17:28:00 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-20 17:28:00 +0100 |
| commit | e10f46c20226609198ac2a1cceab056e87e4d847 (patch) | |
| tree | 7bd906ea1ee7d0f4e92cfa012824d41ac93389f8 /public/license.php | |
| parent | 1502419b0adf915a50ddaec36ab400fd742d745d (diff) | |
build: make development mode optional
This way, if dotenv is not loaded it will always include stylesheets.
Diffstat (limited to 'public/license.php')
| -rw-r--r-- | public/license.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/license.php b/public/license.php index c83af97..e6e107f 100644 --- a/public/license.php +++ b/public/license.php @@ -32,10 +32,10 @@ $dap_current_env = dap_get_current_env(); <meta name="msapplication-config" content="/assets/images/favicon/browserconfig.xml"> <meta name="theme-color" content="#194476"> <?php - if ($dap_current_env === 'production') { - echo '<link rel="stylesheet" href="assets/css/style.css" />'; - } else { + if ($dap_current_env === 'development') { echo '<script src="assets/js/style.js"></script>'; + } else { + echo '<link rel="stylesheet" href="assets/css/style.css" />'; } ?> </head> |
