Finally minifies and writes to dist