Open up your favourite browser (they’re all quite good nowadays) and you shall see this!

Let’s make our demo more pretty. I’m going to use SCSS variables, pretty basic stuff.

We are requiring our style.scss but we just moved it to another path. Makes perfect sense to update the path where we’re requiring the style.scss as well!

What I like to do (and you probably should too) is organise our project. Let’s make a dedicated directory called assets which holds stuff like stylesheets icons images fonts

Yup. I heard cat gifs and images are popular right now. But how can we use images with webpack? Turns out it’s not hard at all.

I think we’re ready for images.

Of course we’re gonna need loaders, what did you think?

We need the image-webpack-loader for the images and —

Let me introduce a new concept! React, React, Reaaaact! I love Reactjs, it’s awesome. I love Vuejs too! — they’re both great. I’m sure Angular and and Polymer are good as well, I just personally have experience with React and Vue.

These frameworks/libraries allow us to write single page applications more smoothly and make it fun again.

Now, I know what you’re thinking.. probably. Oh god — is this going to turn into one of those hipster "I prefer to write my code without a monitor" situations? I assure you not, I’m trying to introduce new webpack concepts.

Please, be open and please allow me to expand your brilliant mind.

React — A JAVASCRIPT LIBRARY FOR BUILDING USER INTERFACES

This is still a webpack tutorial — Don’t worry if you don’t know any of these frameworks — I’m going to focus on webpack 95% of the time!

Okay, without further ado — let’s install the loaders and dependencies!

npm i image-webpack-loader file-loader --save-dev