vamtiger-bundle-html
Bundle HTML
Last updated a year ago by vamtiger-project .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vamtiger-bundle-html 
SYNC missed versions from official npm registry.

VAMTIGER Bundle HTML

VAMTIGER Bundle HTML bundles HTML into a single compiled output file.

Installation

VAMTIGER Bundle HTML can be installed using npm or yarn:

npm i --global vamtiger-bundle-html 

or

yarn global vamtiger-bundle-html

Usage

VAMTIGER Bundle HTML can bundle HTML to a single compiled output file:

vamtiger-bundle-html --entryFilePath absolute/path/source/index.html --bundleFilePath --bundleFilePath build/index.html

The relativePath option can be used to reference entryFilePath and bundleFilePath relative to the current working directory:

vamtiger-bundle-html --relativePath --entryFilePath absolute/path/source/index.html --bundleFilePath --bundleFilePath build/index.html

Referencing the --bundleFilePath with the ts extension will generate the bundle as a Typescript file:

vamtiger-bundle-html --relativePath --entryFilePath absolute/path/source/index.html --bundleFilePath --bundleFilePath build/index.ts

The json option can be added to generate compiled output in JSON format:

vamtiger-bundle-html --relativePath --entryFilePath source/index.html --bundleFilePath --bundleFilePath build/index.json --json

The watch option can be added to generate compiled output each time a source file is updated:

vamtiger-bundle-html --relativePath --entryFilePath source/index.html --bundleFilePath --bundleFilePath build/index.json --json --watch

The copyBundleFilePath option will copy the compiled output to a defined path:

vamtiger-bundle-html --relativePath --entryFilePath source/index.html --bundleFilePath --bundleFilePath build/index.json --json --watch --copyBundleFilePath absolute/path/index.json

VAMTIGER Bundle HTML can also be defined as a custom script:

    ...
    scripts: {
        "bundle-css": "vamtiger-bundle-html --relativePath --entryFilePath source/index.css --bundleFilePath --bundleFilePath build/index.css",
        "watch": "vamtiger-bundle-html --relativePath --entryFilePath source/index.css --bundleFilePath --bundleFilePath build/index.css --watch"
    }
    ...

Current Tags

  • 0.2.8                                ...           latest (a year ago)
  • 0.2.0                                ...           source (2 years ago)

14 Versions

  • 0.2.8                                ...           a year ago
  • 0.2.7                                ...           a year ago
  • 0.2.6                                ...           a year ago
  • 0.2.5                                ...           a year ago
  • 0.2.4                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (10)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |