Getting Started with webpack
Drew Powers
2.9K47

Great Article Drew! Learned a lot from this, i do have a 1–2 things i want to point out.

Firts you have a syntax error where you are putting int the `babel-loader` missing a colon after: options: { presets: [‘es2015’] } just wanted to point out if you intend to update the post :D

Second after i added the section about the the loader im getting this error:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 — configuration.module.rules[0].use should be one of these:
 non-empty string | function | object { loader?, options?, query? } | function | [non-empty string | function | object { loader?, options?, query? }]
 Details:
 * configuration.module.rules[0].use should be a string.
 * configuration.module.rules[0].use should be an instance of function.
 * configuration.module.rules[0].use should be an object.
 * configuration.module.rules[0].use should be one of these:
 non-empty string | function | object { loader?, options?, query? }
 * configuration.module.rules[0].use should be an instance of function.
 * configuration.module.rules[0].use[0] should be a string.
 * configuration.module.rules[0].use[0] should be an instance of function.
 * configuration.module.rules[0].use[0] has an unknown property ‘exclude’. These properties are valid:
 object { loader?, options?, query? }
 * configuration.module.rules[0].use[0] should be one of these:
 non-empty string | function | object { loader?, options?, query? }

Would love if you could explain this for me :) Otherwise really a great read!

Like what you read? Give Lars Krieger a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.