Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Comandeer/html-import-example

Repository files navigation

HTML import example

Example for the blog post about importing HTML in Node.js (English version).

Installation

npm install

Usage

For require.js and require-pirate.js:

node <file-name>

For esm.mjs:

node --experimental-modules --experimental-loader ./hooks/html-loader.mjs esm.mjs

All hooks are located in hooks directory. Sample HTML template is located in templates directory.

License

See LICENSE file for details.

About

Example for blog post about require extensions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published