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

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

Latest version **2.0.10** (published 2022-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @winman-f2e/html-webpack-nos-plugin
pnpm add @winman-f2e/html-webpack-nos-plugin
yarn add @winman-f2e/html-webpack-nos-plugin
bun add @winman-f2e/html-webpack-nos-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.10 |
| Published | 2022-11-30 |
| First published | 2018-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | luofeiyue, whiskeyi, yousy, guoyeeg, azgaga, liushichuan, yaochen, shenyuan, aflyermin, ignous, jeekdong |

## Links

- npm: https://www.npmjs.com/package/@winman-f2e/html-webpack-nos-plugin
- npm.io page: https://npm.io/package/@winman-f2e/html-webpack-nos-plugin

## Dependencies (1)

- [@winman-f2e/nos-upload](https://npm.io/package/@winman-f2e/nos-upload.md) ^3.0.7

## Recent versions

- 2.0.10 (latest) — 2022-11-30
- 2.0.9 — 2022-06-17
- 2.0.8 — 2022-05-19
- 2.0.7 — 2022-05-19
- 2.0.6 — 2022-05-19
- 2.0.5 — 2022-05-19
- 2.0.4 — 2022-05-16
- 2.0.3 — 2022-05-16
- 2.0.2 — 2022-05-16
- 2.0.1 — 2022-05-16
- 2.0.0 — 2022-05-16
- 1.1.0 — 2019-09-23
- 1.0.10 — 2019-07-31
- 1.0.9 — 2019-06-13
- 1.0.8 — 2018-07-11
- … 8 more at https://npm.io/package/@winman-f2e/html-webpack-nos-plugin/versions

## 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')
// nos配置请查看内部wiki文档及@winman-f2e/nos-upload的npm文档
// 配置字段含义参照[`@xgheaven/nos-node-sdk`](https://www.npmjs.com/package/@xgheaven/nos-node-sdk)
const nosUpload = {
    accessKey: 'your-access-key',
    accessSecret: 'your-access-secret',
    host: 'nosdn.127.net',
    protocol: 'https',
    endpoint: 'https://easyreadfs.nosdn.127.net',
    defaultBucket: 'easyreadfs',
    objectOrigin: 'https://easyreadfs.nosdn.127.net',
} 
moudule.exports = {
    plugins: [
        new HtmlWebpackNosPlugin({
            nosUpload,
            retryCount: 3, // 上传失败重试次数，默认为3，可不传
            excludes: ['.html', '.ftl'], // 定义哪些文件不需要上传（后缀名匹配），默认不处理以`.html`, `.ftl`为后缀名的资源。
            prefix: 'projectName' // NOS上的文件夹名, 默认将每次打包时的时间戳作为文件夹名。
            output: false // 是否在本地生成已上传的文件，默认不生成。
        })
    ]
}
```

---
_Source: https://npm.io/package/@winman-f2e/html-webpack-nos-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
