4 Commits

Author SHA1 Message Date
Colt Steele
991f703d05 Minify JS, CSS, and HTML in production
- Extracted CSS into own file in production
- Minified CSS in production
- Added TerserJS back in to minify JS in production
- Minified HTML in production as well
2019-03-05 21:02:05 -08:00
Colt Steele
34e7d30aef Add entrypoint for vendor js file, add bootstrap js
- Now we have 2 entry files and 2 bundles
- The vendor file houses code that is less likely to change, 3rd party libraries
- The main file has all of our app code
2019-03-05 18:37:07 -08:00
Colt Steele
947290016d Add html-loader, file-loader, and clean-webpack-plugin
- Added html-loader to automatically require the files we reference in img tags
- Added file-loader to handle the svg,png,jpg,gif files from our images
- Configured file-loader to add our images to an imgs directory in dist
- Also configured it to add a hash to their filenames
- Lastly, added clean-webpack-plugin to our production config to clean out the dist directory each time we build
2019-03-05 18:13:21 -08:00
Colt Steele
eb66c0dc93 Add prod and dev configs, dev-server
- Broke our webpack.config file into 3 files
- webpack.common.js, webpack.dev.js, and webpack.prod.js
- installed webpack-merge to share the common functionality
- updated our package.json to use the new config files
- installed webpack-dev-server and added it to start script in package.json
2019-03-05 17:24:01 -08:00