af-webpack-dev
Unique webpack wrapper for ant financial.
Last updated 2 years ago by yuan008598 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install af-webpack-dev 
SYNC missed versions from official npm registry.

af-webpack

Unique webpack wrapper for ant financial.

Why af-webpack ?

TODO

CLIs based on af-webpack

Configuration

See ./Configuration.md.

API

af-webpack/getConfig

Get webpack config with opts.

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

af-webpack/dev

Run webpack-dev-server more gracefully with react-dev-utils.

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.

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

Current Tags

  • 0.16.11                                ...           latest (2 years ago)

8 Versions

  • 0.16.11                                ...           2 years ago
  • 0.16.10                                ...           2 years ago
  • 0.16.9                                ...           2 years ago
  • 0.16.8                                ...           2 years ago
  • 0.16.7                                ...           2 years ago
  • 0.16.6                                ...           2 years ago
  • 0.16.5                                ...           2 years ago
  • 0.16.4                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |