1.0.6 • Published 5 years ago

html-inline-assets v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

html-inline-assets

Inline javascript, stylesheets, and images from an html page.

Usage

Usage
  $ html-inline-assets <source.html> -o <output.html>
Options
  --source-file, -i      File to read
  --output-file, -o      File to write
  --help, -h            Displays this message

  --ignore-scripts      RegExp patterns to ignore scripts
  --ignore-styles       RegExp patterns to ignore styles

Programmatic Usage

const inline = require('html-inline-assets')

const opts = {
  ignoreScripts: ['https?://'],
  ignoreStyles: ['https?://', '/css/style.css'],
}

const output = inline(htmlString, opts)

Todo

  • Support link tag
  • Support img tag
  • Support remote resources
1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago