Setting up hot module replacement with Create React App and Redux

If you’re using Create React App (CRA) to scaffold and develop your app you’re familiar with its reloading feature. Whenever you change a component file for example, the whole application gets reloaded automatically just as you would hit the refresh manually. This is a nice feature when you start developing, but as soon as your app gets more complex and has various states and routes for example, it becomes quite cumbersome to put the app in the state it was before the reload....

November 2, 2017 · 3 min · Dustin Chabrowski

Sending push notifications with payloads using web-push and VAPID

The last time I used the push notification service for this blog to send out a link to a new post, I noticed that in Chrome no notification was received. After some digging around it became obvious that they changed the API, so it was the right time to check and revise the current setup. So in this article I want to show how my current system works and the tools I used, which may be interesting for some of you....

October 21, 2017 · 6 min · Dustin Chabrowski

Using rollup.js with gulp.js

Some time ago I wrote about how to use and configure rollup.js in conjunction with Babel featuring gulp.js as the task runner. Since then, a lot has happened in web developer land and fortunately things got easier as well. Because I still like gulp.js and rollup.js and one does not need the full webpack power (and sometimes madness) everytime, I want to give a quick overview on how I use these tools today....

September 30, 2017 · 4 min · Dustin Chabrowski

Performant docker container sync with docker-sync

A while ago, I signed up for the Docker for Mac Beta and was very excited once I got access to it. Mostly because I hoped one can get finally rid of the overhead and issues coming with VirtualBox and docker-machine. While the native integration is pretty sweet and just feels right, one issue which has not been solved is the slow sync with the host file system. With the release of docker-sync by Eugen Mayer, there’s finally a very promising tool available which helps you overcome this issue....

July 11, 2016 · 5 min · Dustin Chabrowski

JavaScript decorator for custom elements

Custom elements are around for quite some time, but after watching the latest episode of “Supercharged” which is about building a router component with custom elements, I felt the urge to fiddle around with it, too. To create a custom element with today’s modern APIs, there’s still some boilerplate code to write. And because I want to try out JS decorators as well, I build a simple decorator for classes which reduces the amount of this repetitive code a little bit....

June 16, 2016 · 4 min · Dustin Chabrowski