vite_plugin_tos
v1.0.2
Published
vite火山上插件
Readme
火山上传 node 版本
vite 上传插件
# 修改版本号
npm publishimport vitePluginTos from 'vite_plugin_tos'
// vite.config.js
plugins: [
...//
vitePluginTos({
accessKeyId: 'xxx',
accessKeySecret: 'xxx',
region: 'cn-shanghai', // 填写 Bucket 所在地域。以华北2(北京)为例,"Provide your region" 填写为 cn-beijing。
endpoint: 'tos-cn-shanghai.volces.com', // 填写域名地址
bucketName: 'xxx',
enabled: true, // 是否开启上传
ignore: ['**/*.html', '**/.DS_Store'], // string or Array<string>
overwrite: false, // 覆盖上传
test: false, // 仅测试
}),
]