0.1.2 • Published 8 years ago
@dms/packager v0.1.2
Functions for packing and unpacking DMS supplies.
This package is primarily referenced by other DMS packages and not necessarily used on its own.
Loading @dms/packager.
var dmsPackager = require ('@dms/packager');
pack(supplyEntryPath)
Creates a supply bundle object from an entry path. Recursively scans files for require()
calls that use relative paths and minifies the code for each.
var bundle = dmsPackager.pack(supplyEntryPath);
unpack(bundle)
Evaluates a supply bundle object into a pre-injected supply.
var s = dmsPackager.unpack(bundle);