blm-upload-oss-plugin
v1.0.8
Published
静态资源上传
Downloads
3
Readme
blm-upload-oss-plugin
usage
// webpack.config.js
npm install blm-upload-oss-plugin
import { uploadOssPlugin } from 'install blm-upload-oss-plugin'
const uploadOption = {
tenantId: argv.tenantId || 1,
output: output || 'dist',
destPath: argv.destPath || 'admin',
isPublic: isPublic || false,
}
const deployConfigOption = {
system_short_name: deployConfig.system_short_name || 'assets',
cdn_vesion: deployConfig.cdn_vesion || 'daily',
assets_dir: deployConfig.assets_dir || 'assets_static'
}
{
plugins: [
new uploadOssPlugin(uploadOption,deployConfigOption)
]
}
Compiles and minifies for production
npm run build:prod
npm publish