# yyl-vue2-webpack-config

> ## 安装

Latest version **0.3.5** (published 2021-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install yyl-vue2-webpack-config
pnpm add yyl-vue2-webpack-config
yarn add yyl-vue2-webpack-config
bun add yyl-vue2-webpack-config
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.5 |
| Published | 2021-08-10 |
| First published | 2021-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | jackness |

## Links

- npm: https://www.npmjs.com/package/yyl-vue2-webpack-config
- npm.io page: https://npm.io/package/yyl-vue2-webpack-config

## Dependencies (6)

- [css-loader](https://npm.io/package/css-loader.md) ^5.2.4
- [vue-loader](https://npm.io/package/vue-loader.md) 15.9.6
- [webpack-merge](https://npm.io/package/webpack-merge.md) ^5.7.3
- [@vue/compiler-sfc](https://npm.io/package/@vue/compiler-sfc.md) ^3.2.1
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^5.3.0
- [vue-template-compiler](https://npm.io/package/vue-template-compiler.md) 2.6.14

## Recent versions

- 0.3.5 (latest) — 2021-08-10
- 0.3.4 — 2021-08-10
- 0.3.2 — 2021-08-10
- 0.3.1 — 2021-08-09
- 0.3.0 — 2021-07-08
- 0.2.2 — 2021-06-25
- 0.2.1 — 2021-05-16
- 0.2.0 — 2021-05-07
- 0.1.1 — 2021-04-06
- 0.1.0 — 2021-03-09

## README

# yyl-vue2-webpack-config

## 安装

```typescript
yarn add yyl-vue2-webpack-config
```

### 使用

```typescript
// webpack.config.js
import yylVue2WebpackConfig from 'yyl-vue2-webpack-config'
import { merge } from 'webpack-merge'

module.exports = (env) => {
  ...merge({
    context: __dirname,
    env,
    alias: {
      '@': path.join(__dirname, './src'),
      '~@': path.join(__dirname, './src/components/')
    },
    yylConfig: {
      commit: {
        hostname: '//www.testhost.com',
        mainHost: 'http://www.testhost.com'
      }
    }
  })
}
```

### 文档

直接看 types 吧

```typescript
import { Configuration } from 'webpack'
import { YylBaseInitConfigOption } from 'yyl-base-webpack-config'
export declare type WConfigVue2Result = Required<
  Pick<Configuration, 'module' | 'resolve' | 'plugins'>
>
declare function yylVue2WebpackConfig(op: YylBaseInitConfigOption): Configuration
export default yylVue2WebpackConfig
```

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