This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE* The notations below assume that there is only 1 size per image, ie. new dynamically sized images are already working : | |
// POST a new image : | |
// soa/inventory-3/2/image | |
// payload : multi part form-data | |
// return value : | |
{ | |
id : '123', | |
original : '/path/to/original.jpeg', | |
master : '/path/to/master.jpeg', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// grunt minify CSS task using sqwish | |
grunt.registerMultiTask('cssmin', 'minify css with sqwish', function () { | |
var sqwish = require('sqwish'), | |
dest = this.file.dest; | |
try { | |
var css = grunt.file.read(this.file.src), | |
min = sqwish.minify(css); |