Adding a ServiceWorker to a Webpack project to enable Offline Caching

Things move so fast in the JavaScript world so please make sure this article is relevant to you. It's currently March 2018 I'm using WebPack 4.2.0 I used offline-plugin to accomplish adding a ServiceWorker to my JavaScript app that uses Webpack as a build tool. The README on the offline-plugin repository page has excellent instructions for setting up this Webpack … Continue reading Adding a ServiceWorker to a Webpack project to enable Offline Caching

Advertisements

Migrating a poorly written web app to use Webpack and Babel

I play a lot of Pokemon GO! To help me on the road I built a Type Effectiveness checking site called Poketype! (Poketype on GitHub) It's a simple site and, having come from a company that primarily used jQuery, I decided to write it all in Vanilla JS. This was a bad idea! Note to self: … Continue reading Migrating a poorly written web app to use Webpack and Babel

Publishing a create-react-app App on Heroku for free!

Greetings, all. Over the past two weeks, I've been casually learning about the React framework. The experience has been a blast, and while I'm definitely still a big ol' noob, I'm hoping the following will prove useful to someone out there. Now before getting into any great detail, if you're here just because of the … Continue reading Publishing a create-react-app App on Heroku for free!

2 Minute HTTP or Local web server using Node.js

This couldn't be simpler. Jason Watmore covers the steps in detail here: http://jasonwatmore.com/post/2016/06/22/nodejs-setup-simple-http-server-local-web-server Make sure you have Node.js installed. Download links are at the bottom of their home page. Open up your shell of choice - Command Prompt, Terminal, Bash, whatever! Run "npm install -g http-server" (package documentation here) "cd" (Change Directory) into your project folder … Continue reading 2 Minute HTTP or Local web server using Node.js