Skip to content

Postcss dynamic config doesn't work from v11.2 #757

Closed
@chatoo2412

Description

@chatoo2412

Postcss dynamic config doesn't work after this commit because webpack object isn't passed anymore.
Please bring webpack object back.

And, the comment should be moved to load-postcss-config.js file.

lib/style-compiler/load-postcss-config.js:

module.exports = function loadPostcssConfig (inlineConfig) {
  if (process.env.VUE_LOADER_TEST || !loaded) {
    // use the same config loading interface as postcss-loader
    loaded = load({ webpack: webpack }, null, { argv: false }).catch(() => {
      // postcss-load-config throws error when no config file is found,
      // but for us it's optional.
    })
  }

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions