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 config cascading isn't working #1947

Closed
timonbandit opened this issue Feb 15, 2019 · 2 comments
Closed

postcss config cascading isn't working #1947

timonbandit opened this issue Feb 15, 2019 · 2 comments

Comments

@timonbandit
Copy link
Contributor

Hey!
I'm trying to use several postcss.config.js for different folders (different templates) but postcss-loaders loads only one config from the root of a project.
I'm sure this is the problem on this line get_style_rule.js:31
config: { path: resolve() },
I think this is a not correct way of using path in postcss-loader because post-css-loader documentation tells us - Config lookup starts from path.dirname(file) and walks the file tree upwards until a config file is found.

when I removed this line it helped me.

@timonbandit
Copy link
Contributor Author

small workaround for this issue is changing the rule with postcss-loader

environment.loaders.get('sass').use.splice(2, 1, {
  loader: 'resolve-url-loader',
  options: {}
});

in config/webpack.environment.js

@guillaumebriday
Copy link
Member

Can this issue be closed ?

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

3 participants