node package manager


grunt-assetify Build Status Dependency Status

Compile your assetify static assets before even launching your application!

This is the grunt task for assetify. It supports multiple targets.


$ npm install grunt-assetify --save


    assetify: {
        target: OPTIONS,
        target_2: OPTIONS_2,

The OPTIONS objects can be configured exactly like those in assetify, and there are a few improvements over the options in the assetify package.

Here are the defaults:

    production: false
    assets: {
        js: [],
        css: []
    compress: true,         // disable: false 
    fingerprint: prod,      // enable: non-development environment or true 
    plugins: {
        less: true,         // disable: false 
        sass: false,        // enable: true 
        coffee: false,      // enable: true 
        jsn: false,         // enable: true 
        forward: false,     // enable with args array: [{ extnames: ['.txt'] }, true] 
        bundle: prod,       // enable: non-development environment or true 
        minifyCSS: prod,    // enable: non-development environment or true 
        minifyJS: prod,     // enable: non-development environment or true 
        use: []


Assets can use a glob property, which will be used to expand a globbing pattern repeating the properties defined in our asset, this is handy for defining a folder, for example.


Plugins already have come with some very nice default values, but we can adapt them to our needs or even include our own plugins into the mix. Turning on the regular plugins is just a matter of setting a few boolean values to true or false.

If we provide opts.production, this will help us with the default bundling and minification options.

For more setup options go to the assetify repository.