happyplan/happyplan

View on GitHub
grunt_tasks/config/imagemin.js

Summary

Maintainability
A
0 mins
Test Coverage
// optimize images
// just  write over files because there are already copies
module.exports = function(grunt) {
  "use strict";

  return {
    dist: {
      options: '<%= happyplan.imagemin %>',
      files: [{
        expand: true,
        cwd: "<%= happyplan.path.dist.assets.images %>",
        src: ["**/*.{png,jpg,jpeg,gif}"],
        dest: "<%= happyplan.path.dist.assets.images %>"
      },
      {
        expand: true,
        cwd: "<%= happyplan.path.dist.media %>",
        src: ["**/*.{png,jpg,jpeg,gif}"],
        dest: "<%= happyplan.path.dist.media %>"
      }]
    }
  }
}