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

Upgrade to Webpack 4 #10

Merged
merged 1 commit into from Mar 13, 2018
Merged

Upgrade to Webpack 4 #10

merged 1 commit into from Mar 13, 2018

Conversation

Nayni
Copy link
Contributor

@Nayni Nayni commented Mar 12, 2018

This PR upgrades the plugin to be fully functional for Webpack 4 and should hopefully solve/prevent the issues people are facing in #9

Small list of changes I did:

  • Add a warning when the config was placed in the wrong plugin array
  • Use Webpack 4 Tapable/Hooks API when possible
  • Rename everything related to Webpack 3 or lower API to legacy to avoid confusion
  • Add section in the readme to warn for missplacing the plugin
  • Add rimraf as devDependency so that yarn build works for Windows too
  • Upgrade the example to Webpack 4 latest

There also shouldn't be any deprecation warnings anymore when using it with Webpack 4.

- Add a warning when the config was placed in the wrong plugin array
- Use Webpack 4 Tapable/Hooks API when possible
- Rename everything related to Webpack 3 or lower API to legacy to avoid confusion
- Add section in the readme to warn for missplacing the plugin
- Add rimraf as devDependency so that yarn build works for Windows too
- Upgrade the example to Webpack 4 latest
@jonaskello
Copy link
Member

This looks really good! Thanks for putting it together. Awesome that it is backwards compatible too :-)

I will release this as a new major version to make it clear 3.0.0 is the first version to support webpack 4.

@jonaskello jonaskello merged commit e9b0c2a into dividab:master Mar 13, 2018
@Nayni
Copy link
Contributor Author

Nayni commented Mar 13, 2018

Cool, glad I could help :)

@Nayni Nayni deleted the webpack4-upgrade branch March 13, 2018 10:01
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.

None yet

2 participants