4 Commits

Author SHA1 Message Date
Colt Steele
c932911657 Cache busting and HtmlWebpackPlugin
- Configured webpack to use contentHash in bundle file name
- This caused a problem with out script tag in index.html
- We installed HtmlWebpackPlugin to help us generate a new index.html
- It automatically includes the correct script tag at the bottom
- We created a template file that we passed in called template.html
- We deleted the original index.html because we don't need it anymore
- Make sure you are opening dist/index.html now to view the app
2019-03-05 15:24:55 -08:00
Colt Steele
21c9e3b623 Add Sass loader, override bootstrap colors
- Changed our main.css to main.scss
- Installed bootstrap locally so we can tweak it
- Installed sass-loader and node-sass
- Updated webpack.config file to include a .scss rule
2019-03-05 15:00:12 -08:00
Colt Steele
65c2ac4709 Add first loaders to handle css
- Installed style-loader and css-loader
- Configured webpack.config to use both loaders on css files
- Remember the order we use them in webpack.config matters
2019-03-05 14:50:31 -08:00
Colt Steele
d13f75ab6c Add webpack config file
- Created webpack.config.js
- Added some basic configuration
- Modified package.json, so that webpack uses our config file
2019-03-05 11:48:38 -08:00