Chasing dragons

All things related to Node

scribble

How to read Node.js environment variables

Clarice Bouwer
Clarice Bouwer
Tuesday, 18 October 2022 · Estimated 1 minute read

Running a Node app is simple. Sometimes you want to add environment variables that either contain sensitive information or are contextual to the environment you want to run your app on. You can set t…

scribble

Utility to fix npm dependencies

Clarice Bouwer
Clarice Bouwer
Sunday, 9 October 2022 · Estimated 1 minute read

There is a utility called npm-check that offers the ability to interactively update outdated, incorrect or unused dependencies: Take a look at the switches. It offers way more than just that. Usage S…

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 …