- 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
24 lines
492 B
JSON
24 lines
492 B
JSON
{
|
|
"name": "code",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"start": "webpack --config webpack.config.js"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"devDependencies": {
|
|
"bootstrap": "^4.3.1",
|
|
"css-loader": "^2.1.0",
|
|
"html-webpack-plugin": "^3.2.0",
|
|
"node-sass": "^4.11.0",
|
|
"sass-loader": "^7.1.0",
|
|
"style-loader": "^0.23.1",
|
|
"webpack": "^4.29.6",
|
|
"webpack-cli": "^3.2.3"
|
|
}
|
|
}
|