1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-15 10:05:40 +02:00

docs: switch to dart sass

This commit is contained in:
XhmikosR
2024-02-21 12:35:17 +02:00
parent 99562ba37c
commit 0d73736616
3 changed files with 4 additions and 4 deletions

View File

@@ -35,6 +35,9 @@ jobs:
- name: Install npm dependencies
run: npm ci
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Build docs
run: npm run docs-build

View File

@@ -160,9 +160,6 @@
"scss/**/*.scss",
"!scss/tests/**"
],
"hugo-bin": {
"buildTags": "extended"
},
"jspm": {
"registry": "npm",
"main": "js/bootstrap",

View File

@@ -12,7 +12,7 @@
{{- if (ne .Page.Layout "examples") }}
{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}}
{{- $sassOptions := dict "targetPath" $targetDocsCssPath "outputStyle" "expanded" "precision" 6 -}}
{{- $sassOptions := dict "transpiler" "dartsass" "targetPath" $targetDocsCssPath "outputStyle" "expanded" -}}
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
{{ if eq hugo.Environment "production" -}}