mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
Add Dart Sass support
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102
This commit is contained in:
parent
f9f779786e
commit
cea1574023
26 changed files with 804 additions and 207 deletions
|
@ -411,6 +411,9 @@ func (r *resourceAdapter) transform(publish, setContent bool) error {
|
|||
errMsg = ". Check your PostCSS installation; install with \"npm install postcss-cli\". See https://gohugo.io/hugo-pipes/postcss/"
|
||||
} else if tr.Key().Name == "tocss" {
|
||||
errMsg = ". Check your Hugo installation; you need the extended version to build SCSS/SASS."
|
||||
} else if tr.Key().Name == "tocss-dart" {
|
||||
errMsg = ". You need dart-sass-embedded in your system $PATH."
|
||||
|
||||
} else if tr.Key().Name == "babel" {
|
||||
errMsg = ". You need to install Babel, see https://gohugo.io/hugo-pipes/babel/"
|
||||
}
|
||||
|
@ -442,6 +445,9 @@ func (r *resourceAdapter) transform(publish, setContent bool) error {
|
|||
if tryFileCache {
|
||||
f := r.target.tryTransformedFileCache(key, updates)
|
||||
if f == nil {
|
||||
if err != nil {
|
||||
return newErr(err)
|
||||
}
|
||||
return newErr(errors.Errorf("resource %q not found in file cache", key))
|
||||
}
|
||||
transformedContentr = f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue