s-webpack-cdn-plugin
v1.0.8
Published
针对webpack5以上的上传cdn功能插件
Downloads
13
Readme
s-webpack-cdn-plugin
针对webpack5的上传cdn插件,把静态资源上传至cdn,并替换为cdn引用地址
Usage
const SWebpackCDNPlugin = require('s-webpack-cdn-plugin');
new SWebpackCDNPlugin({
token: "xxx", // 必传
bucket: "xxx", // 必传
interface_ip: "xxx",
folder: "xxx",
keepLocalFiles: true, //boolean
backupHTMLFiles: true, //boolean
manifestFilename: true //boolean
})