Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postcss plugin sets inappropriate working directory #507

Open
dwt opened this issue Jul 9, 2018 · 0 comments
Open

Postcss plugin sets inappropriate working directory #507

dwt opened this issue Jul 9, 2018 · 0 comments

Comments

@dwt
Copy link

dwt commented Jul 9, 2018

While trying to get postcss to work the way we want, we noticed that

with working_directory(filename=source_path):
seems to be wrong / not functional.

The problem is that when you use the filter to build a file that is outside the source tree of the main project (e.g. provided by a plugin) then the source path will also be outside the project, therefore preventing postcss from finding its config file.

We have replaced that line with this:

        with working_directory(directory=self.ctx.directory):

which allows us to configure the working directory with the directory path from the Environment.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant