Skip to content

Updated FAQ section with example configuration for webpack 2. #88

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

Closed
wants to merge 1 commit into from

Conversation

newoc1
Copy link

@newoc1 newoc1 commented May 14, 2017

Hello!

I just recently started using this plugin with webpack 2, but had some difficulty getting it to work. This may seem trivial, but as a developer new to webpack 2 and babel I think this might help newbies like me. Everything else worked out of the box!

Please leave any feedback you'd like.

@tyler-dot-earth
Copy link

@newoc1 Good intentions, but not necessarily config-neutral documentation.

Recommendation here would be to use the .babelrc file instead of configuring within Webpack. Using this .babelrc config file is more neutral: utilities other than Webpack (i.e. eslint, jest, etc) which read from the same project files but don't use Webpack will still use the same babel plugins without duplicate setup.

@newoc1
Copy link
Author

newoc1 commented May 14, 2017

@tsnieman Thanks for the feedback. You're completely right. Just had to add the reference under plugins in .babelrc and it was business as usual. Thanks!

@newoc1 newoc1 closed this May 14, 2017
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

Successfully merging this pull request may close these issues.

2 participants