On syntax podcast they talk about an extension that pretties up JavaScript every time you save a file. I sure could use something like that for Sass.
I’m trying out Sage 9 today and it’s a bit tedious to get thrown errors constantly about errant spaces and extra lines. I’d much rather the file just get reformatted automatically rather than get slapped on the wrist over and over!
Chrome enforcing HTTPS by default on .dev domain extensions is now in effect! I’ve just provisioned for hours thinking there was something wrong with trellis - don’t be me, use .test
I’ve been working on a WordPress plugin for code snippets, WP-Gistpen, and I’ve finally got it ready to be beta tested. If you’re interested in checking it out, you can find more information here or download the latest version from GitHub’s releases page.
Applying compression, removing metadata and reducing the number of colors to PNGs, JPGs, SVGs and GIFs is now one command away: typisttech/image-optimize-command
$ du -bsh /app/public/wp-content/uploads
3.1M /app/public/wp-content/uploads
$ wp image-optimize run --limit=3
Success: 3 unoptimized attachment(s) found. Starting...
Start optimizing /app/public/wp-content/uploads/2018/01/source-150x150.gif
Using optimizer: `Spatie\ImageOptimizer\Optimizers\Gifsicle`
Executing `"gifsicle" -b -O3 '/app/public/wp-content/uploads/2018/01/source-150x150.gif'`
...omitted...
Success: 3 attachment(s) optimized
$ du -bsh /app/public/wp-content/uploads
2.8M /app/public/wp-content/uploads