From 606475756933b95344e71746c7bb234992ef3200 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 11 Mar 2024 09:24:26 +0200 Subject: [PATCH] Mount bootstrap.min.js to a vendor folder again (#426) --- hugo.yml | 2 +- src/layouts/partials/scripts.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hugo.yml b/hugo.yml index 0e7101bfe..f591e9885 100644 --- a/hugo.yml +++ b/hugo.yml @@ -76,7 +76,7 @@ module: - source: node_modules/bootstrap/scss target: assets/scss/bootstrap - source: node_modules/bootstrap/dist/js/bootstrap.bundle.min.js - target: assets/js/bootstrap.bundle.min.js + target: assets/js/vendor/bootstrap.bundle.min.js params: docs_version: "5.3" diff --git a/src/layouts/partials/scripts.html b/src/layouts/partials/scripts.html index ad634fed2..624da97e1 100644 --- a/src/layouts/partials/scripts.html +++ b/src/layouts/partials/scripts.html @@ -4,7 +4,7 @@ {{- $esbuildOptions = merge $esbuildOptions (dict "minify" "true") -}} {{- end -}} -{{- $bootstrapJs := resources.Get "/js/bootstrap.bundle.min.js" | fingerprint | resources.Copy "/assets/js/vendor/bootstrap.bundle.min.js" -}} +{{- $bootstrapJs := resources.Get "/js/vendor/bootstrap.bundle.min.js" | fingerprint | resources.Copy "/assets/js/vendor/bootstrap.bundle.min.js" -}} {{- $application := resources.Get "js/application.js" | js.Build $esbuildOptions | fingerprint | resources.Copy "/assets/js/application.js" -}}