From 4e44790ca2a3f4d3a09c8659bfd9aaaa97717af0 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sat, 5 Feb 2022 08:05:55 +0100 Subject: [PATCH] overhaul dev/prod script loading --- public/index.html | 11 +++++++++-- public/js/bootstrap.js | 16 ---------------- 2 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 public/js/bootstrap.js diff --git a/public/index.html b/public/index.html index c710234..b226984 100644 --- a/public/index.html +++ b/public/index.html @@ -1,7 +1,6 @@ - @@ -28,6 +27,14 @@ - + + diff --git a/public/js/bootstrap.js b/public/js/bootstrap.js deleted file mode 100644 index 4833fc6..0000000 --- a/public/js/bootstrap.js +++ /dev/null @@ -1,16 +0,0 @@ -(function(){ - var s = document.createElement("script"); - - if (location.host === "127.0.0.1:8080") { - //dev - s.setAttribute("src", "js/main.js"); - s.setAttribute("type", "module"); - - } else { - //prod - s.setAttribute("src", "js/bundle.js"); - - } - - document.body.appendChild(s); -})();