mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 03:59:59 -05:00
Improve error message when no Babel installed
This commit is contained in:
parent
6e051c053e
commit
2fd0a5a678
1 changed files with 2 additions and 0 deletions
|
@ -408,6 +408,8 @@ 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/"
|
errMsg = ". Check your PostCSS installation; install with \"npm install postcss-cli\". See https://gohugo.io/hugo-pipes/postcss/"
|
||||||
} else if tr.Key().Name == "tocss" {
|
} else if tr.Key().Name == "tocss" {
|
||||||
errMsg = ". Check your Hugo installation; you need the extended version to build SCSS/SASS."
|
errMsg = ". Check your Hugo installation; you need the extended version to build SCSS/SASS."
|
||||||
|
} else if tr.Key().Name == "babel" {
|
||||||
|
errMsg = ". You need to install Babel, see https://gohugo.io/hugo-pipes/babel/"
|
||||||
}
|
}
|
||||||
|
|
||||||
return errors.New(msg + errMsg)
|
return errors.New(msg + errMsg)
|
||||||
|
|
Loading…
Reference in a new issue