luangjokaj / wordpressify

🎈 Automate your WordPress development workflow.
http://www.wordpressify.co
MIT License
1.59k stars 140 forks source link

Add bitmap and vector minification as part of the build process. #16

Closed adam-mckenna closed 6 years ago

adam-mckenna commented 6 years ago

The build process for WordPressify is quite impressive and boasts a wide array of functionality. It minifies the JavaScript and CSS when a production build is created, but it leaves both bitmaps and vectors unoptimised.

This isn't a drastic issue for most small sites, but some sites use SVGs heavily. Including gulp plugins, such as [gulp-svgmin](https://www.npmjs.com/package/gulp-svgmin) and [gulp-imagemin](https://www.npmjs.com/package/gulp-imagemin), would help reduce the filesize of the prod theme greatly.

luangjokaj commented 6 years ago

Hey @AdamMcquiff 👋

Just pushed another release. It includes support for bitmap and svg minification. This process is included only in the production build when you generate the production files. https://github.com/luangjokaj/wordpressify/pull/17

alt text

adam-mckenna commented 6 years ago

Hey @luangjokaj!

That's absolutely fantastic - great work as always 👍