зеркало из https://github.com/twbs/icons.git
config.yml: mount bootstrap.bundle.min.js in static folder (#1655)
We only copy this file
This commit is contained in:
Родитель
0b52cc6176
Коммит
430b69d460
|
@ -47,7 +47,7 @@ module:
|
|||
- source: node_modules/bootstrap/scss
|
||||
target: assets/scss/bootstrap
|
||||
- source: node_modules/bootstrap/dist/js/bootstrap.bundle.min.js
|
||||
target: assets/js/vendor/bootstrap.bundle.min.js
|
||||
target: static/assets/js/vendor/bootstrap.bundle.min.js
|
||||
- source: node_modules/clipboard/dist/clipboard.min.js
|
||||
target: assets/js/vendor/clipboard.min.js
|
||||
- source: node_modules/fuse.js/dist/fuse.min.js
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{{ $bootstrapJs := resources.Get "/js/vendor/bootstrap.bundle.min.js" | resources.Copy "/assets/js/vendor/bootstrap.bundle.min.js" -}}
|
||||
<script async src="{{ $bootstrapJs.Permalink | relURL }}"></script>
|
||||
<script async src="/assets/js/vendor/bootstrap.bundle.min.js"></script>
|
||||
|
||||
{{- if or .IsHome (eq .Page.Layout "sprite") -}}
|
||||
{{- $fuseVendor := resources.Get "js/vendor/fuse.min.js" -}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче