fix packager, add flag for debug (minifying) to plugin resource loader