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

Comandeer/html-import-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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