grunt-assetify

0.9.3 • Public • Published

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.

Installation

$ npm install grunt-assetify --save

Setup

grunt.initConfig({
    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: []
    }
}

Globbing

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-assetify

Weekly Downloads

0

Version

0.9.3

License

none

Last publish

Collaborators

  • bevacqua