用于将静态资源上传到nos
const NosWebpackPlugin = require('nos-webpack-plugin')
module.exports = {
plugins: [new NosWebpackPlugin({
accessKey: 'xxx',
accessSecret: 'xxx',
nosHost: 'xxx',
port: '80',
nosPrefix: 'xxx',
bucketName: 'xxx'
realHost: 'xxx'
})]
}
required NOS的accessId
required NOS的secretKey
required NOS的endpoint
default: 80 NOS的端口号
default: '' NOS的前缀, 真是的静态资源路径http://bucketName.realHost/nosPrefix/filePath
default: '' NOS的三级域
required NOS可能有多个可用域,所以这里请手动设置