Posts

How to Safely Copy Files with Gulp 5

Last year, I updated the build tool for this blog’s theme. I upgraded from Gulp version 4 to version 5. After I finished, I worked as usual thinking nothing of it.

That was until, out of the blue, after uploading a zipped copy of the theme to my remote WordPress server, my font files were mangled or missing. Images also wouldn’t load at all, but the paths were correct.

Read More…

Upgrading a Theme to Use wp-scripts

A couple of months ago, while upgrading Mixin’ Styles- GB, I decided I wanted the build process line up with WordPress standards. It is a block theme, after all.

The way I set up the previous build, I wasn’t able to work on files that would automatically be minified, as I saved separate .min files. Then, I found out about the @wordpress/scripts packages.

Read More…