change build-opt to pack, add minify javascript