Skip to content

PostCSS and node_modules #1763

Answered by csaunier
csaunier asked this question in Q&A
Discussion options

You must be logged in to vote

🤦‍♂️

Sorry, the only mistake on my previous post is that i targeted .body instead of body


Nevertheless, my issue what more complex than what i exposed. It imply a npm monorepos with two workspaces : ui-kit and website.
Inside website, I have a webpack configuration, with postCss loader, and a postCss.config.js file.
And postCss was not processing files from ui-kit workspace.

I change my loader configuration to specify the configuration i want to use, and this solve my issue :
from :

...
{
  loader: "postcss-loader",
}
...

to :

// const postCssConfig = require("../postcss.config")
...
{
  loader: "postcss-loader",
  options: {
    postcssOptions: postCssConfig,
  },
}
...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by csaunier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant