bb-asset-manager
Yet another asset manager for NodeJS.
This package allows you to declare a directory that will be served statically on your webserver. You can then package files in that directory together into concatenated and minified assets which can be easily included in your HTML. You can also easily switch between using raw and minified assets e.g. for easier debugging in development.
Installation
npm install --save bb-asset-manager
Basic Usage
var AssetMan = ; var assetMan = staticDirectory: __dirname + '/static' // Where your static assets live outputDirectory: '/minified' // Relative to staticDirectory ; assetMan; assetMan assetMan; console
Will output
Advanced Usage
See Advanced Usage for details on controlling minification, concatenation, and file ordering.
Contributions
Contributions are welcome! I'll try to respond to PRs within 24 hours.
TODO
- Add a build process for e.g. ES6 and CoffeScript transpiling
- Expose Express middleware for auto-recompiling in development