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

chore: improve sample migration output #281

Merged
merged 1 commit into from
Feb 26, 2018

Conversation

dhruvdutt
Copy link
Member

@dhruvdutt dhruvdutt commented Feb 25, 2018

  • Improve migration output for sample webpack config.
  • Comparison variable parity

What kind of change does this PR introduce?
Enhancement

Summary
image

Actual output:
image

Does this PR introduce a breaking change?
No

@dhruvdutt dhruvdutt changed the title Update MIGRATE.md Improve sample migration output Feb 25, 2018
@evenstensberg
Copy link
Member

You need to change your commit format, change you rebase? It should be something like:

misc(migrate): prettify output

@dhruvdutt dhruvdutt force-pushed the patch-1 branch 2 times, most recently from 458d712 to 9b978f8 Compare February 25, 2018 14:17
@dhruvdutt
Copy link
Member Author

dhruvdutt commented Feb 25, 2018

@ev1stensberg rebased and updated commit messages. 👍

@webpack-bot
Copy link

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

MIGRATE.md Outdated
@@ -153,7 +153,7 @@ module.exports = {

In summary, we can see the follow changes were made
1. The webpack schema for using loaders has changed
- `loaders` is now `module.rules`
- `module.loaders` is now `module.rules`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In webpack v1 this was loaders, please remove this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned the commit containing that change.

@@ -68,23 +68,23 @@ module.exports = {
The `migrate` command, when run, will show the proposed changes to the config file in the terminal, prompting the user to
accept the changes or not:

```bash
```diff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice

+ loader: 'babel-loader'
+ }],
+ options: {
- loader: ExtractTextPlugin.extract('style', 'css!sass')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Updated the summary image as well. 💯

@webpack-bot
Copy link

@dhruvdutt Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@ev1stensberg Please review the new changes.

@evenstensberg evenstensberg merged commit ef7df35 into webpack:master Feb 26, 2018
@dhruvdutt dhruvdutt changed the title Improve sample migration output chore: improve sample migration output Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants