Skip to content

Commit

Permalink
misc(migrate): prettify output
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Feb 25, 2018
1 parent 9406912 commit a6ab459
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions MIGRATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
$ webpack-cli migrate ./webpack.config.js
✔ Reading webpack config
✔ Migrating config from v1 to v2
- loaders: [
+ rules: [
- loader: 'babel',
query: {
+ use: [{
loader: 'babel-loader'
}],
options: {
- loader: ExtractTextPlugin.extract('style', 'css!sass')
+ use: ExtractTextPlugin.extract({
fallback: 'style',
use: 'css!sass'
})
- loaders: [
+ rules: [
- loader: 'babel',
- query: {
+ use: [{
+ loader: 'babel-loader'
+ }],
+ options: {
- loader: ExtractTextPlugin.extract('style', 'css!sass')
+ use: ExtractTextPlugin.extract({
+ fallback: 'style',
+ use: 'css!sass'
+ })
? Are you sure these changes are fine? Yes

✔︎ New webpack v2 config file is at /Users/obuckley/Workspace/github/repos/webpack-migrate-sandbox/webpack.config.js
Expand Down

0 comments on commit a6ab459

Please sign in to comment.