Skip to content

Commit

Permalink
Mount bootstrap.min.js to a vendor folder again (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Mar 11, 2024
1 parent 6556fc7 commit 6064757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" -}}
<script async src="{{ $bootstrapJs.Permalink | relURL }}"></script>

{{- $application := resources.Get "js/application.js" | js.Build $esbuildOptions | fingerprint | resources.Copy "/assets/js/application.js" -}}
Expand Down

0 comments on commit 6064757

Please sign in to comment.