UNPKG

html-bundler-webpack-plugin

Version:

Generates complete single-page or multi-page website from source assets. Built-in support for Markdown, Eta, EJS, Handlebars, Nunjucks, Pug. Alternative to html-webpack-plugin.

17 lines (13 loc) 367 B
const path = require('path'); const { pathToFileURL } = require('url'); const { register } = require('module'); /** * Registers the module loader. * * @param {string} loader */ function registerLoader(loader = 'nocacheLoader.js') { const loaderPath = path.resolve(__dirname, loader); register(pathToFileURL(loaderPath)); } module.exports = registerLoader;