# @winman-f2e/nos-loader

> 加载模块的方式是将文件上传并返回URL

Latest version **2.0.1** (published 2022-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @winman-f2e/nos-loader
pnpm add @winman-f2e/nos-loader
yarn add @winman-f2e/nos-loader
bun add @winman-f2e/nos-loader
```

## 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.1 |
| Published | 2022-06-29 |
| First published | 2018-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yousy, guoyeeg, azgaga, liushichuan, yaochen, shenyuan, aflyermin, ignous, jeekdong |

## Links

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

## Dependencies (3)

- [loader-utils](https://npm.io/package/loader-utils.md) ^1.1.0
- [schema-utils](https://npm.io/package/schema-utils.md) ^0.4.5
- [@winman-f2e/nos-upload](https://npm.io/package/@winman-f2e/nos-upload.md) ^3.0.5

## Recent versions

- 2.0.1 (latest) — 2022-06-29
- 2.0.0 — 2020-05-29
- 1.0.0 — 2018-02-23

## README

# nos-loader
加载模块的方式是将文件上传并返回URL

## 使用

`$ npm install @winman-f2e/nos-loader`

```
// webpack.config.js

const nosUpload = {} // http://doc.hz.netease.com/pages/viewpage.action?pageId=105043442


module.exports = {
    rules: [
        {
            test: /\.(png|jpe?g|gif|svg|woff2?|eot|ttf|otf)(\?.*)?$/,
            loader: '@winman-f2e/nos-loader',
            query: {
                nosUpload
            }
        }
    ]
}

```
`nosUpload`格式:
```javascript
{
    accessKey: '',
    accessSecret: '',
    host: '',
    protocol: '',
    endpoint: '',
    defaultBucket: '',
    objectOrigin: ''
}
```

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