Chasing dragons

All things related to Webpack

scribble

Why you will see the error 'Loading chunk \d+ failed'

Clarice Bouwer
Clarice Bouwer
Tuesday, 6 September 2022 · Estimated 1 minute read

I know of the following reasons why chunks cannot be downloaded: Network errors Inspect the network in the browser dev tools to find out more information about the errors. Resources not found They do…

scribble

How to minify CSS files via CopyWebpackPlugin for Webpack5

Clarice Bouwer
Clarice Bouwer
Wednesday, 15 June 2022 · Estimated 1 minute read

Goal Emit minified vendor-based CSS files on build. Dependencies Elaborate I have a few unminified vendor CSS files that I simply want to minify and copy to an output directory. These files were not …

scribble

Name CSS Split Chunks using MiniCssExtractPlugin

Clarice Bouwer
Clarice Bouwer
Thursday, 17 March 2022 · Estimated 1 minute read

React: 17.0.2 Webpack: 5.67.0 Webpack CLI: 4.9.1 mini-css-extract-plugin 2.5.3 Snippet Objective Bust the cache for CSS files that are emitted on build using Webpack 5 with Split Chunks. Set up one …

scribble

How to reference a local Webpack npm package

Clarice Bouwer
Clarice Bouwer
Friday, 14 January 2022 · Estimated 1 minute read

With the help of this question and answer from Stack Overflow: Install the local npm package using the file path. Check node_modules to see the installed package. (or depending on the requirements) …