Fix bug when using plugins to build minified releases