Skip to content
/ d8e Public

A node CLI tool for minifying, inlining & bundling a static HTML website for deployment

Notifications You must be signed in to change notification settings

noydb/d8e

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d8e

A node CLI tool for bundling/preparing a static HTML website for deployment. This tool will:

  1. Traverse all HTML files - in the specified inputDirectory in .d8e
  2. Convert all JS & CSS into inline HTML scripts
  3. Minify the JS, CSS & HTML
  4. Copy the HTML files - and any images & fonts - to the specified outputDirectory (in .d8e)

NOTE: place images inside <inputDirectory>/asset/img, and fonts inside <inputDirectory>/asset/font This ensures seamless mapping of image src attributes & font src url values.

Usage

1. npm install -g d8e

2. Create a config file - in the root of your project - like:

{
  "inputDirectory": "src2",
  "outputDirectory": "dist",
  "verbose": false
}

3. d8e b

About

A node CLI tool for minifying, inlining & bundling a static HTML website for deployment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published