grunt-graphics
v0.1.5
Published
Manage images
Downloads
5
Maintainers
Readme
grunt-graphics
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"
}
}
];