|
|
|
@ -6,10 +6,10 @@ new WebpackAliyunOss({ |
|
|
|
from: ['./dist/**'], |
|
|
|
dist: '/', |
|
|
|
overwrite: true, |
|
|
|
region: 'oss-cn-shenzhen', |
|
|
|
region: 'oss-cn-guangzhou', |
|
|
|
accessKeyId: ifProd ? 'LTAI5tK6dDnADdj1mgS6X9oa' : 'LTAINmC91NqIGN38', |
|
|
|
accessKeySecret: ifProd ? 'fxg0tBxHj9gCGikaDXUmWj8pC9IrVu' : 'Hh10dQPjq1jMLLSpbDAR05ZzR3nXsU', |
|
|
|
bucket: `dating-agency-opr${ifProd ? '-prod' : '-test'}`, |
|
|
|
bucket: `dating-clue-opr${ifProd ? '-prod' : '-test'}`, |
|
|
|
setOssPath(filePath) { |
|
|
|
let index = filePath.lastIndexOf('dist') |
|
|
|
let Path = filePath.substring(index + 4, filePath.length) |
|
|
|
|