@winman-f2e/html-webpack-nos-plugin

将打包后的静态资源上传至nos

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@winman-f2e/html-webpack-nos-plugin
Minified + gzip package size for @winman-f2e/html-webpack-nos-plugin in KB

Readme

html-webpack-nos-plugin

将打包后的静态资源上传至nos

使用

$ npm install @winman-f2e/html-webpack-nos-plugin

// webpack.config.js

const HtmlWebpackNosPlugin = require('@winman-f2e/html-webpack-nos-plugin')
const nosUpload = {} // nos配置请查看内部wiki文档

moudule.exports = {
    plugins: [
        new HtmlWebpackNosPlugin({
            nosUpload,
            excludes: ['.html', '.ftl'], // 定义哪些文件不需要上传(后缀名匹配),默认不处理以`.html`, `.ftl`为后缀名的资源。
            prefix: 'projectName' // NOS上的文件夹名, 默认将每次打包时的时间戳作为文件夹名。
            output: false // 是否在本地生成已上传的文件,默认不生成。
        })
    ]
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.