From 5a75eb39608d8518c7cd077d4918f6c4e7016ed2 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Tue, 26 May 2020 04:48:37 +0100 Subject: [PATCH] Updating documentation --- .gitignore | 2 ++ blog/webpack-structure.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 1e52000..04daf8b 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ hugo.linux # End of https://www.gitignore.io/api/hugo blog/node_modules + +*.DS_Store* diff --git a/blog/webpack-structure.md b/blog/webpack-structure.md index 51ee830..c183436 100644 --- a/blog/webpack-structure.md +++ b/blog/webpack-structure.md @@ -213,6 +213,8 @@ Don't forget to add the `const MiniCssExtractPlugin = reuire("mini-css-extract-p For the `plugins` object we should configure our `MiniCssExtractPlugin` which will configure how split css files are named (exactly like the `output` object which is for javascript files. CSS is done with a plugin.) +We need to add the `webpack.HashedModuleIdsPlugin` to the plugins since we are using it for the hash for our `js` and `css` files. + ```javascript plugins: [ new MiniCssExtractPlugin({