# av-webpack

> Unique webpack wrapper for ant financial.

Latest version **0.0.2** (published 2019-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install av-webpack
pnpm add av-webpack
yarn add av-webpack
bun add av-webpack
```

## 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.2 |
| Published | 2019-07-31 |
| First published | 2019-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 64 |
| Unpacked size | 163.7 KB |
| Known vulnerabilities | 0 (+15 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | kaqiinono |

## Links

- npm: https://www.npmjs.com/package/av-webpack
- Repository: https://github.com/kaqiinono/af-webpack
- Homepage: https://github.com/kaqiinono/af-webpack.git
- Issues: https://github.com/kaqiinono/af-webpack/issues
- npm.io page: https://npm.io/package/av-webpack

## Dependencies (64)

- [less](https://npm.io/package/less.md) ^2.7.2
- [chalk](https://npm.io/package/chalk.md) ^2.1.0
- [debug](https://npm.io/package/debug.md) ^3.1.0
- [assert](https://npm.io/package/assert.md) ^1.4.1
- [eslint](https://npm.io/package/eslint.md) ^4.7.1
- [pkg-up](https://npm.io/package/pkg-up.md) ^2.0.0
- [semver](https://npm.io/package/semver.md) ^5.5.0
- [tslint](https://npm.io/package/tslint.md) ^5.8.0
- [is-root](https://npm.io/package/is-root.md) ^1.0.0
- [postcss](https://npm.io/package/postcss.md) ^6.0.11
- [resolve](https://npm.io/package/resolve.md) ^1.5.0
- [webpack](https://npm.io/package/webpack.md) ^3.5.6
- [chokidar](https://npm.io/package/chokidar.md) ^2.0.3
- [inquirer](https://npm.io/package/inquirer.md) ^3.3.0
- [deprecate](https://npm.io/package/deprecate.md) ^1.0.0
- [css-loader](https://npm.io/package/css-loader.md) ^0.28.7
- [didyoumean](https://npm.io/package/didyoumean.md) ^1.2.1
- [strip-ansi](https://npm.io/package/strip-ansi.md) 3.0.1
- [typescript](https://npm.io/package/typescript.md) ^2.8.1
- [url-loader](https://npm.io/package/url-loader.md) ^0.6.2
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.0.0
- [detect-port](https://npm.io/package/detect-port.md) ^1.2.1
- [file-loader](https://npm.io/package/file-loader.md) ^0.11.2
- [less-loader](https://npm.io/package/less-loader.md) ^4.0.5
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^8.2.0
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^8.0.1
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.0.2
- [requireindex](https://npm.io/package/requireindex.md) ^1.1.0
- [style-loader](https://npm.io/package/style-loader.md) ^0.20.3
- [eslint-loader](https://npm.io/package/eslint-loader.md) ^2.0.0
- [sockjs-client](https://npm.io/package/sockjs-client.md) 1.1.4
- [tslint-loader](https://npm.io/package/tslint-loader.md) ^3.5.3
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0
- [lodash.isequal](https://npm.io/package/lodash.isequal.md) ^4.5.0
- [postcss-loader](https://npm.io/package/postcss-loader.md) ^2.0.6
- [@babel/register](https://npm.io/package/@babel/register.md) ^7.0.0
- [is-plain-object](https://npm.io/package/is-plain-object.md) ^2.0.4
- [react-dev-utils](https://npm.io/package/react-dev-utils.md) ^5.0.0
- [babel-preset-umi](https://npm.io/package/babel-preset-umi.md) ^1.0.0
- [eslint-config-umi](https://npm.io/package/eslint-config-umi.md) ^0.1.4
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^2.9.4
- [copy-webpack-plugin](https://npm.io/package/copy-webpack-plugin.md) ^4.2.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.1.0
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^2.30.1
- [react-error-overlay](https://npm.io/package/react-error-overlay.md) ^3.0.0
- [strip-json-comments](https://npm.io/package/strip-json-comments.md) ^2.0.1
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.6.0
- [eslint-plugin-flowtype](https://npm.io/package/eslint-plugin-flowtype.md) ^2.34.1
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^5.1.1
- [postcss-flexbugs-fixes](https://npm.io/package/postcss-flexbugs-fixes.md) ^3.2.0
- [webpack-bundle-analyzer](https://npm.io/package/webpack-bundle-analyzer.md) ^2.9.0
- [webpack-manifest-plugin](https://npm.io/package/webpack-manifest-plugin.md) ^1.3.2
- [awesome-typescript-loader](https://npm.io/package/awesome-typescript-loader.md) ^3.4.1
- [es5-imcompatible-versions](https://npm.io/package/es5-imcompatible-versions.md) ^0.1.2
- [hard-source-webpack-plugin](https://npm.io/package/hard-source-webpack-plugin.md) ^0.6.7
- [sw-precache-webpack-plugin](https://npm.io/package/sw-precache-webpack-plugin.md) ^0.11.4
- [system-bell-webpack-plugin](https://npm.io/package/system-bell-webpack-plugin.md) ^1.0.0
- [extract-text-webpack-plugin](https://npm.io/package/extract-text-webpack-plugin.md) ^3.0.0
- [progress-bar-webpack-plugin](https://npm.io/package/progress-bar-webpack-plugin.md) ^1.11.0
- [fork-ts-checker-webpack-plugin](https://npm.io/package/fork-ts-checker-webpack-plugin.md) ^0.4.1
- [babel-plugin-add-module-exports](https://npm.io/package/babel-plugin-add-module-exports.md) ^0.2.1
- [case-sensitive-paths-webpack-plugin](https://npm.io/package/case-sensitive-paths-webpack-plugin.md) ^2.1.1
- [babel-plugin-dynamic-import-node-sync](https://npm.io/package/babel-plugin-dynamic-import-node-sync.md) ^2.0.1
- [@babel/plugin-transform-modules-commonjs](https://npm.io/package/@babel/plugin-transform-modules-commonjs.md) ^7.0.0

## Recent versions

- 0.0.2 (latest) — 2019-07-31
- 0.0.1 — 2019-07-31

## README

# af-webpack

Unique webpack wrapper for ant financial.

## Why af-webpack ?

TODO

## CLIs based on af-webpack

* [umi](https://github.com/umijs/umi)
* [roadhog@2](https://github.com/sorrycc/roadhog/tree/2.0)

## Configuration

See [./Configuration.md](./Configuration.md).

## API

### af-webpack/getConfig

Get webpack config with opts.

```js
const webpackConfig = getConfig(opts);
// use webpackConfig to dev or build
```

### af-webpack/dev

Run webpack-dev-server more gracefully with [react-dev-utils](https://github.com/facebookincubator/create-react-app/tree/master/packages/react-dev-utils).

```js
dev({
  webpackConfig,
  extraMiddlewares,
  beforeServer,
  afterServer,
  onCompileDone,
  onCompileInvalid,
  proxy,
});
```

webpackConfig is required, other optional.

Options:

* `webpackConfig`: The webpack config 
* `extraMiddlewares`: Extra middlewares for webpack-dev-server, based on express
* `beforeServer`: The function to execute before dev server is started
* `afterServer`: The function to execute after dev server is started
* `onCompileDone`
* `onCompileInvalid`
* `proxy`: The proxy config which will pass through to webpack-dev-server

### af-webpack/build

Run webpack compilation.

```js
build({
  webpackConfig,
  success,
});
```

webpackConfig is required, other optional.

Options:

* `webpackConfig`: the webpack config 
* `success`: the function to execute after build is done successfully

### af-webpack/react-dev-utils

The APIs related to react-dev-utils.

* webpackHotDevClientPath：the real path of webpackHotDevClient

### af-webpack/webpack

The webpack, useful to register extra webpack plugins.

### af-webpack/registerBabel

Register babel for extra files.

## LICENSE

MIT

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