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 dynamic config doesn't work from v11.2 #757

Closed
chatoo2412 opened this issue Apr 4, 2017 · 0 comments
Closed

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

chatoo2412 opened this issue Apr 4, 2017 · 0 comments

Comments

@chatoo2412
Copy link

chatoo2412 commented Apr 4, 2017

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.
    })
  }

...
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