mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
resource/postcss: Change postcss to check for local installation under node_modules/.bin
Fixes #5091
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
05d0eddd2b
commit
a5604e18b0
@@ -98,7 +98,7 @@ func (t *postcssTransformation) Key() resources.ResourceTransformationKey {
|
||||
// npm install -g autoprefixer
|
||||
func (t *postcssTransformation) Transform(ctx *resources.ResourceTransformationCtx) error {
|
||||
|
||||
const localPostCSSPath = "node_modules/postcss-cli/bin/"
|
||||
const localPostCSSPath = "node_modules/.bin/"
|
||||
const binaryName = "postcss"
|
||||
|
||||
// Try first in the project's node_modules.
|
||||
|
Reference in New Issue
Block a user