resource/postcss: Change postcss to check for local installation under node_modules...
authorEric Selin <eric.selin@gmail.com>
Fri, 17 Aug 2018 15:30:53 +0000 (17:30 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 16 Jul 2019 08:02:20 +0000 (10:02 +0200)
Fixes #5091

resources/resource_transformers/postcss/postcss.go

index 5350eebc5b625d0bbb9c901ebec097c798f3a3bf..d26ffad54609ad4705dd9037751ffad41710c465 100644 (file)
@@ -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.