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

Make it possible to get the generated webpack config for any command #112

Open
insin opened this issue May 29, 2016 · 2 comments
Open

Make it possible to get the generated webpack config for any command #112

insin opened this issue May 29, 2016 · 2 comments

Comments

@insin
Copy link
Owner

insin commented May 29, 2016

If you want to use https://github.com/benmosher/eslint-plugin-import, it has a Webpack resolver which needs the webpack config.

@ericclemmons
Copy link

Oh man, I hate that rule. I disable it wherever I can, since it causes a lot of duplication for it to work correctly between every single project :(

@insin
Copy link
Owner Author

insin commented Nov 21, 2017

Idea for this after looking at React Cosmos' integration docs - what if we added some modules under config/ with the name of the basic commands nwb supports which just generates the webpack config for that command (using nwb.config.js to determine the project type) and exports it?

Then integration with cosmos might look something like:

// cosmos.config.js
module.exports = {
  webpackConfigPath: 'nwb/config/serve',
  // ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants