This PR aims to use the webpack configurator plugin methods so that the user can remove and add/customise webpack plugins. The documentation on README.md already describes this behavior so I don't think it needs to be updated.
I did not find any tests regarding the usage of the loaders methods of wp-configurator, so I did not add for the plugin, @KyleAMathews do you feel its needed?
(This feature request is mentioned here)
Adapting webpack config to use webpack-configurator plugin method
simplifying plugin calls
reusing common plugin definition
Thanks for doing this! Yes... for some reason this wasn't done back when we switched over to webpack-configurator.
Jest snapshots would be perfect for testing this... which (Jest) I've moved the 1.0 stuff to use. But for now, it'd be pretty tedious to setup a test for this so doesn't seem worth it.
0.12.28 is out with this pr 🎉
🎉 awesome! Thanks and keep up the good work with gatsby!