Workaround for theme generation not working.
Latest attempt at getting resource precompilation working.