assets-tasks
v0.0.5
Published
Common assets tasks for NodeJS.
Downloads
7
Maintainers
Readme
assets-tasks
Common assets tasks for NodeJS.
Installation
Install the npm package. This module currently compiles .coffee
, .styl
, .jade
, images
and fonts
. Assets are versionized
and gziped
on precompile.
npm install assets-tasks --save
Example
var assets = require('assets-tasks');
// clean assets
assets.clean();
// precompile
assets.compile();
// precompile
assets.precompile();
// read precompiled asset name
assets.assetPath('originalFileName.css'); // e.g. originalFileName.28djamb321.css