Skip to content

Instantly share code, notes, and snippets.

View Gomah's full-sized avatar
⚗️

Thomas Marrec Gomah

⚗️
View GitHub Profile
@Gomah
Gomah / smaller.js
Last active May 23, 2017 04:33 — forked from nqthqn/smaller.js
Obtain better load time!
import tinify from 'tinify';
import walk from 'walk';
import path from 'path';
tinify.key = '';
const dir = path.join(__dirname, '../src/assets');
const files = [];
const walker = walk.walk(dir, { followLinks: false });