From the course: Learning webpack 4

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Run webpack

Run webpack

From the course: Learning webpack 4

Start my 1-month free trial

Run webpack

- [Instructor] Now that we know how to install webpack, let's go through the process of putting together our first webpack build. First of all, you'll notice in your start folder that we have a package JSON and a package-lock file, but we don't have node_modules folder. This is because having a node_modules folder in ever exercise files folder starts to make our Exercise Files folder pretty huge. So, we do have the package JSON, though, so that's going to act as an installer. So, over in my terminal, I'm in 0104 start and I can run npm i or npm install, and this is going to install all of the current dependencies, webpack and webpack CLI. And you can always do this in any project folder. Alternatively, you can drag the node_modules folder into the proper Exercise Files folder. Let's also install jQuery and we'll send it the save flag and now that that's included, I'm going to create a couple of folders inside of the start folder. The first is going to be called source, and the second…

Contents