1. 4
    Install webpack and create a default bundle
    9m 18s

Install webpack and create a default bundle

Andy Van Slaars
InstructorAndy Van Slaars

Share this video with your friends

Send Tweet

In this lesson, we'll add some initial files to our project, install webpack and webpack-cli, and setup an npm script to create a JavaScript bundle using webpack. We'll inspect the resulting bundle to understand what webpack does by default. We’ll also add a .gitignore file to avoid committing node_modules and files that result from a build process.

Mark Ireland
Mark Ireland
~ 6 years ago

Good stuff Andy, easy to follow. Just one snag - that last step to push to GitHub - I don't think we have the repo set up yet. In fact that seems to be the next lesson :-)

Andy Van Slaars
Andy Van Slaarsinstructor
~ 6 years ago

Good stuff Andy, easy to follow. Just one snag - that last step to push to GitHub - I don't think we have the repo set up yet. In fact that seems to be the next lesson :-)

Sorry, there are a couple issues with video order. We're working on getting it straightened out as soon as possible.

ken lee
ken lee
~ 6 years ago

I am using yarn. but I am not familiar with yarn. I ask you something. yarn run build --mode development Is this command right?

Keith Price
Keith Price
~ 6 years ago

When I install webpack, my github list shows 3428 changes with a massxive list of files. Any idea what I did differently?

Keith Price
Keith Price
~ 6 years ago

9 months later and this doesn't appear to have been fixed.

Good stuff Andy, easy to follow. Just one snag - that last step to push to GitHub - I don't think we have the repo set up yet. In fact that seems to be the next lesson :-)

Sorry, there are a couple issues with video order. We're working on getting it straightened out as soon as possible.

Andy Van Slaars
Andy Van Slaarsinstructor
~ 6 years ago

Sounds like your node_modules folder isn’t in your .gitignore

Denis OSullivan
Denis OSullivan
~ 4 years ago

note the course is using webpack v4 (not the latest v5)...I'm installing same as course https://github.com/avanslaars/egghead-react-boilerplate/blob/03_install_webpack/package.json#L22