aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-31 22:03:04 +0100
committerArmand Philippot <git@armandphilippot.com>2021-10-31 22:03:04 +0100
commitc64a7bd26fefb53aee53667cf33e2c72b7d07311 (patch)
tree332cac2337dd4b9c1b11e98683240274731bbb19 /index.php
parent3be752d822e12a34ff388b98f8654ab02a8ea586 (diff)
build: use php dotenv instead of js to inject style.js in dev mode
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index d0b2f7c..35f317d 100644
--- a/index.php
+++ b/index.php
@@ -14,6 +14,8 @@ $dap_current_env = dap_get_current_env();
<?php
if ($dap_current_env === 'production') {
echo '<link rel="stylesheet" href="assets/css/style.css" />';
+ } else {
+ echo '<script src="assets/js/style.js"></script>';
}
?>
</head>