Skip to content

Commit

Permalink
Make hugo use Dartsass locally
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Dec 22, 2024
1 parent f232df5 commit 906f9b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"js-test-jquery": "cross-env JQUERY=true npm run js-test-karma",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel js-lint css-lint lockfile-lint",
"docs": "npm-run-all docs-build docs-lint",
"docs-build": "hugo --cleanDestinationDir --printUnusedTemplates",
"docs-build": "PATH=$(npm config get prefix)/bin:$PATH hugo --cleanDestinationDir --printUnusedTemplates",
"docs-compile": "npm run docs-build",
"docs-vnu": "node build/vnu-jar.mjs",
"docs-lint": "npm run docs-vnu",
Expand Down Expand Up @@ -163,9 +163,6 @@
"scss/**/*.scss",
"!scss/tests/**"
],
"hugo-bin": {
"buildTags": "extended"
},
"jspm": {
"registry": "npm",
"main": "js/bootstrap",
Expand Down
2 changes: 1 addition & 1 deletion site/layouts/partials/stylesheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{- end }}

{{- if (ne .Page.Layout "examples") }}
{{- $sassOptions := dict "outputStyle" "expanded" "precision" 6 -}}
{{- $sassOptions := dict "transpiler" "dartsass" "outputStyle" "expanded" "precision" 6 -}}
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}

{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}}
Expand Down

0 comments on commit 906f9b8

Please sign in to comment.