Skip to main contentGo back to the homepage

I am Fernando van Loenhout
A Full stack developer!

Theme:

Tag loader

Articles

Writing your own webpack loader

Dated:
This article has been posted under the following categories: blog, tech-demo, webpack, loader and from-scratch

Webpack looks like a quite intimidating system, but having played around with them, they are very simple. In this article we will be creating our own loader from scratch and adding them to our webpack configuration.

Basics of a loader

The core concept is a loader is basically a function that maps input to output. Loaders have the requirement is being written in the commonjs format, meaning you work with module.exports and require. An basic example:

module.exports = function stringReplacingLoader(input) {
    return input.replace("World", "Earth");
}

Read more...

My new website

Dated:
This article has been posted under the following categories: blog, portfolio, skills, loader and jsx

If you read this quickly after publication, the chance is high you are on my newly build website. There are multiple techniques used on this website to archive my goals. Doing this mix with a static website vs easy to add content was quite the technical challenge, but looking at this website shows I succeeded in my goals.

Goals

  • Static HTML pages
  • Minimal javascript
  • Automatic compiling of markdown posts
  • Dark/white theme support based on the browser, with user override
  • Quick load times
  • Contribution…

Read more...