add build support to build minified and requirejs support or no requirejs support