Skip to content

PostCSS Doesn't Work When Parent Directory Name Has Space. #6283

@joshmossas

Description

@joshmossas

Before I begin I want to say I'm on Windows 10 so it might be a Windows specific issue

I was working on a site and couldn't for the life of me get PostCSS to work in Hugo Pipes. I kept getting the following error

image

It didn't work until I realized the error was showing the wrong directory name. It was showing "D:\Modii\Projects\Contentful " instead of "D:\Modii\Projects\Contentful Starter\contentful-hugo-starter"

My folder structure looks like this:

└── Projects
    └── Contentful Starter
        └── contentful-hugo-starter
            ├── assets/
            │   └── sass/
            │       └── main.scss
            ├── content/
            ├── layouts/
            ├── config.toml
            ├── postcss.config.js
            └── rest_of_my_hugo_files

When I removed the space in the parent directory "Contentful Starter" changing it to "contentful-starter" it began to work properly. So it seems to me Hugo just is having a problem navigating the file structure when one of the files has a space in its name.

PS: Also I did test using Hugo pipes with PostCSS and without. This issue only arises when using PostCSS from my experience.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions