Switch static jquery serving to bundling and minifying all JS

This commit is contained in:
Thomas A. Christensen II 2022-02-01 23:51:12 -06:00
parent d5f32d3b27
commit 211cfcef65
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -222,7 +222,8 @@
</div> </div>
{{ $jqueryjs := resources.Get "node/node_modules/jquery/dist/jquery.js" }} {{ $jqueryjs := resources.Get "node/node_modules/jquery/dist/jquery.js" }}
<script src="{{ $jqueryjs.Permalink }}"></script> {{ $alljs := slice $jqueryjs | resources.Concat "js/bundle.js" | resources.Minify }}
<script src="{{ $alljs.Permalink }}"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
@ -236,6 +237,7 @@
}); });
$("#motto").fitText(); $("#motto").fitText();
</script> </script>
</body> </body>
</html> </html>