0.1.5 • Published 9 years ago

grunt-graphics v0.1.5

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

grunt-graphics

Build Status

Getting Started

Example config

grunt.initConfig({
    graphics: {
        assets: {
            src: "assets/**/*"
        }
    }
});

Example file in assets directory

File assets/images.js:

module.exports = [
    {
        options: [
            {suffix: '@1x', width: 768},
            {suffix: '@2x', width: (768 * 2)},
            {suffix: '@3x', width: (768 * 3)}
        ],
        files: {
            "dist/images/image-output.png": "src/image-source.psd"
        }
    }
];