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

Is it possible to console.log to see config? #71

Closed
kmcaloon opened this issue Feb 11, 2019 · 2 comments
Closed

Is it possible to console.log to see config? #71

kmcaloon opened this issue Feb 11, 2019 · 2 comments

Comments

@kmcaloon
Copy link

I would like to check out the webpackConfig, env, and paths values for the configure option but there doesn't seem to be an easy way to see them. I am trying to understand these configurations options and would like to add a resolve plugin so I'm trying to see what is available here...

module.exports = {
  ...,
  configure: ( webpackConfig, { env, paths } ) => {
    console.log( webpackConfig );
  }
@kmcaloon
Copy link
Author

So the first problem was I was adding the configure option to the default export instead of the webpack object. In order to view the console.log I just broke the build by not returning the webpackConfig.

module.exports = {
  webpack: {
    ...,
    configure: ( webpackConfig, { env, paths } ) => {
      console.log( webpackConfig );
      return null;
    }
}

@yairopro
Copy link

@kmcaloon you saved my day! 😻

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

2 participants