# dao-unicode-webpack-plugin

> 基于Webpack的中文转Unicode插件

Latest version **0.0.1** (published 2022-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install dao-unicode-webpack-plugin
pnpm add dao-unicode-webpack-plugin
yarn add dao-unicode-webpack-plugin
bun add dao-unicode-webpack-plugin
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-04-26 |
| First published | 2022-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @daoxin |
| Maintainers | daoxin |
| Keywords | oss, aliyun, webpack, npm, nodejs |

## Links

- npm: https://www.npmjs.com/package/dao-unicode-webpack-plugin
- Repository: https://github.com/dao-projects/dao-unicode-webpack-plugin
- Homepage: https://github.com/dao-projects/dao-unicode-webpack-plugin#readme
- Issues: https://github.com/dao-projects/dao-unicode-webpack-plugin/issues
- npm.io page: https://npm.io/package/dao-unicode-webpack-plugin

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2022-04-26

## README

# dao-unicode-webpack-plugin

基于Webpack的中文转Unicode插件

## 如何使用

1. 安装DaoUnicodeWebpackPlugin

```
$ npm i dao-unicode-webpack-plugin -D
```

2. 配置webpack.config.js

```
<!-- 在头部引入插件 -->
var DaoUnicodeWebpackPlugin = require("dao-unicode-webpack-plugin");
<!-- 配置plugins -->
.....
plugins: [
     // 中文转Unicode
    new DaoUnicodeWebpackPlugin(),
]
```

3. 如其他环境如vue.config.js

```

let env = process.env.NODE_ENV == "development" ? "development" : "production";

module.exports = {
   ......
   configureWebpack: config => {
          // 为生产环境修改配置...
          if (env) {
            config.plugins.push(
               // 中文转Unicode
               new DaoUnicodeWebpackPlugin(),
            )
        }
   }
   ......
```

---
_Source: https://npm.io/package/dao-unicode-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
