Fixed the minified theme js file not being generated

Fixes https://github.com/wet-boew/wet-boew/issues/5476