Javascript
-
Hello, Dark Mode 2 min read
Implement automatic dark mode with prefers-color-scheme, matchMedia, and CSS custom properties backed by SCSS.
-
Snapshot Tests With Jest 3 min read
Use Jest snapshots to compare serialized output, handle generated values, update snapshots, and avoid common testing mistakes.
-
Introducing DeliveryGuy 2 min read
DeliveryGuy wraps the Fetch API to reject HTTP errors and provide convenient access to response bodies and metadata.
-
Why custom errors in JavaScript with Babel are broken 2 min read
Learn why Babel-transpiled custom JavaScript errors lose inheritance in ES5 and what limited workarounds remain.
-
Awesome tests with Vue and Jest 3 min read
Configure Jest for Vue components and test asynchronous Fetch behavior with mocks, shallow rendering, and async/await.
-
Vue Loader Setup in Webpack 2 min read
Set up vue-loader manually in Webpack, add Vue entry points, and split dependencies into dedicated vendor chunks.
-
Real-world Node.js Performance Improvements 2 min read
A real-world benchmark compares Webpack build performance across Node.js 6.11.2, 8.2.1, and 8.4.0.
-
Webpack 2 with Pug and SASS 7 min read
A practical Webpack 2 setup for compiling Pug templates, SCSS stylesheets, and ES2015 JavaScript with Babel.
-
Schnellere Websites mit RequireJS 5 min read
RequireJS strukturiert JavaScript in Module, löst Abhängigkeiten auf und lädt Skripte asynchron.