mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
resource/postcss: Change postcss to check for local installation under node_modules/.bin
Fixes #5091
This commit is contained in:
parent
05d0eddd2b
commit
a5604e18b0
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue