This means you can write a simple node script that dynamically generates content, you can require that script elsewhere, and webpack will pre-generate the content for you at build time, totally automatically. Putting this together: we need to write a module that fetches our remote script at build time, and returns it to val loader. With that in place, any code that needs the remote script can import our module via val loader, and get the remote script as if it were a normal dependency.