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

config-overrides.js does not support async #519

Closed
ooooevan opened this issue Jan 28, 2021 · 1 comment
Closed

config-overrides.js does not support async #519

ooooevan opened this issue Jan 28, 2021 · 1 comment

Comments

@ooooevan
Copy link

I want to do something async before module.exports, but it does not support
related to #365

module.exports = function override(config, env) {
  return new Promise((resolve)=>{
    // code...
    resolve(config)
  })
};

Failed to compile.
Entry module not found: Error: Cant resolve './src' in 'E:\xxx\xx'

can it supported async ?

version: ^2.1.3

@patricktran
Copy link

I just submitted a PR to add async/wait support for devServer configuration
#543

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