1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 02:24:19 +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 - name: Install npm dependencies
run: npm ci run: npm ci
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Build docs - name: Build docs
run: npm run docs-build run: npm run docs-build

View File

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

View File

@@ -12,7 +12,7 @@
{{- if (ne .Page.Layout "examples") }} {{- if (ne .Page.Layout "examples") }}
{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}} {{- $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 -}} {{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
{{ if eq hugo.Environment "production" -}} {{ if eq hugo.Environment "production" -}}