migrate bootstrap and flags to bundle

This commit is contained in:
Aaron Qian 2022-11-13 22:50:28 -08:00 committed by Aaron Qian
parent 3957190425
commit 82feb539bd
No known key found for this signature in database
GPG key ID: BF1A987C395B5B0E
532 changed files with 63 additions and 7630 deletions

View file

@ -0,0 +1,5 @@
{{ return (dict
"outputStyle" "compressed"
"enableSourceMap" (not hugo.IsProduction)
"includePaths" "node_modules"
) }}

View file

@ -0,0 +1,11 @@
{{/* setup Sass options */}}
{{- $options := partial "helpers/get-sass-options.html" -}}
{{- $options = $options | merge (dict "targetPath" "application.css") -}}
{{/* Compile hugo template `application.template.scss` into `application.scss`. */}}
{{- $template := resources.Get "styles/application.template.scss" -}}
{{- $scss := $template | resources.ExecuteAsTemplate "styles/application.scss" . -}}
{{/* Bundle application.scss */}}
{{- $bundle := $scss | resources.ToCSS $options | fingerprint -}}
<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" integrity="{{ $bundle.Data.Integrity }}" />