webpack-contrib / transform-loader

transform loader for webpack
MIT License
110 stars 23 forks source link

Update README with -loader suffix for examples for Webpack 2 #15

Closed kevinzwhuang closed 7 years ago

kevinzwhuang commented 7 years ago

Summary:

Webpack v2.1.0-beta.26 introduced a breaking change to require loaders to have the -loader suffix.

This PR updates the README to show that pattern as an example instead of using the shorthand naming.

cc: @sokra @km-tr

km-tr commented 7 years ago

In the first place in webpack 2 setting, since it is "module.loaders" to "module.rules", should we write the settings of webpack 1 and webpack 2 separately?

kevinzwhuang commented 7 years ago

Sure, I think that makes sense to have 2 examples for v1 and v2, I'll update this PR with a simple example of the current config migrated to v2 (with the v1 config below it).

km-tr commented 7 years ago

Thank you!