This project is built with webpack.
You'll need to run the following commands:
-
Install dependencies
npm install -
Bundle with webpack and enter into watch mode
npm run watch
Today we learnt about ES6 modules and webpack.
Here are some review notes that we went through:
- What is a js package manager?
- manages packages, updates them, installs them
- yarn, npm
- What is a js bundler?
- combines code into one file
- converts commonjs into browser js
- it also images and css (SASS, styled components, css modules)
- What were some of the problems with es6 modules without a bundler?
- doesn't work with node, commonjs (require)
- crazy file path to figure out entry point
- loading sucked, it made 640 network requests for lodash-es
- Why do we only need webpack in development?
- outputs code
- that code can the be used in production
- send the webpack compressed code to netlify