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.
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 :-)
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.
I am using yarn. but I am not familiar with yarn.
I ask you something. yarn run build --mode development
Is this command right?
When I install webpack, my github list shows 3428 changes with a massxive list of files. Any idea what I did differently?
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.
Sounds like your node_modules folder isn’t in your .gitignore
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