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

Fixes #5091
This commit is contained in:
Eric Selin 2018-08-17 17:30:53 +02:00 committed by Bjørn Erik Pedersen
parent 05d0eddd2b
commit a5604e18b0
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View 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.