Socket
Socket
Sign inDemoInstall

app-bundle

Package Overview
Dependencies
21
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    app-bundle

Merges html file with js/css files and minifies and inlines assets


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Install size
1.58 MB
Created
Weekly downloads
 

Readme

Source

App Bundle

Bundles a HTML file with unified JS/CSS and inlined assets.

Usage

Import the node module:

`npm install app-bundle`

Bundle to a variable (synchronous)

var appbundle = require("app-bundle");
appbundle("src/template.html", "bin/bundle.html", [ "src/images", "src/scripts" ]);

Minify

appbundle("src/template.html", "bin/bundle.html", [ "src/images", "src/scripts" ], true);

And inline assets

appbundle("src/template.html", "bin/bundle.html", [ "src/images", "src/scripts" ], true, true);

Keywords

FAQs

Last updated on 20 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc