conventionally we build our production code into
dist
directory and then deploy to public clound storage for usage of CDN.
In your package.json
S_DIR is optional and default
dist
{
"scripts": {
"deploy":
"S_VENDOR=s3 S_REGION=region S_BUCKET=bucket S_AK=ak S_SK=sk S_DIR=dist static-deploy"
}
}
In your package.json
S_DIR is optional and default
dist
{
"scripts": {
"deploy":
"S_VENDOR=alioss S_REGION=region S_BUCKET=bucket S_AK=ak S_SK=sk S_DIR=dist static-deploy"
}
}