Original package by Kffein, forked by Industrious.
- Go to Tinypng and generate an API Key
- In your
gulpfile.js
, specify the API key and any folder options in the following format:
require('laravel-elixir-tinypng');
elixir.config.img = {
folder: elixir.config.assetsPath + '/img',
outputFolder: elixir.config.publicPath + '/img',
tinypngKey: 'APIKEY'
};