Skip to content
Discussion options

You must be logged in to vote

Circling back, postcss-loader DOES work with parallel: true!

The problem with our setup was actually that postcss-loader was running in parallel but css-loader was not. Running css-loader in the worker thread as well resolved the issue.

{
  exclude: [/node_modules/],
  test: /\.css$/,
  enforce: 'pre',
  use: [
    {
      loader: require.resolve('css-loader'),
      options: { ... },
      ident: 'css',
      parallel: true, // parallel: true must be set css-loader if also set on postcss-loader!
    },
    {
      loader: require.resolve('postcss-loader'),
      options: { ... },
      ident: 'postcss',
      parallel: true,
    },
  ],
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mjames-c
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