resource/postcss: Change postcss to check for local installation under node_modules/.bin

Fixes #5091
This commit is contained in:
Eric Selin authored and Bjørn Erik Pedersen committed 2019-07-16 10:02:20 +02:00
1 parent 05d0eddd2b
commit a5604e18b0
1 file changed
+1 -1
@@ -98,7 +98,7 @@ func (t *postcssTransformation) Key() resources.ResourceTransformationKey {
// npm install -g autoprefixer // npm install -g autoprefixer
func (t *postcssTransformation) Transform(ctx *resources.ResourceTransformationCtx) error { func (t *postcssTransformation) Transform(ctx *resources.ResourceTransformationCtx) error {
const localPostCSSPath = "node_modules/postcss-cli/bin/" const localPostCSSPath = "node_modules/.bin/"
const binaryName = "postcss" const binaryName = "postcss"
// Try first in the project's node_modules. // Try first in the project's node_modules.