Command line interface for Lasso.js which is used to bundle web application resources
npm install lasso-cliLasso.js CLI
========================================
This utility provides support for running the Lasso.js from the command-line.
``bash`
npm install lasso-cli --global
A simple usage that writes out a JavaScript bundle and a CSS bundle to the static/ directory that includes all of the required dependencies is shown below:
`bash`
lasso foo.js style.css --main main.js --name "my-page"
With additional options:
`bash# Entry point JavaScript module for the browser
lasso jquery.js style.less \
--main "main.js" \# Give the page bundle files a name
--name "my-page" \# Output directory
--out static \# URL prefix
--url-prefix "http://mycdn/static/" \# Include fingerprints
--fingerprint \# Head and body HTML
--html \# Minify JavaScript and CSS
--minify \# Inject HTML markup into a static HTML file
--inject-into index.html \# Install plugins
--plugins "lasso-less" "lasso-marko"
`
Alternatively, you can create a JSON configuration file and use that instead:
`bash`
lasso --config lasso-config.json
For additional help from the command line, you can run the following command:
`bash``
lasso --help