Unique webpack wrapper for ant financial.
TODO
See ./Configuration.md.
Get webpack config with opts.
const webpackConfig = getConfig(opts);
// use webpackConfig to dev or build
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 configextraMiddlewares
: Extra middlewares for webpack-dev-server, based on expressbeforeServer
: The function to execute before dev server is startedafterServer
: The function to execute after dev server is startedonCompileDone
onCompileInvalid
proxy
: The proxy config which will pass through to webpack-dev-server
Run webpack compilation.
build({
webpackConfig,
success,
});
webpackConfig is required, other optional.
Options:
webpackConfig
: the webpack configsuccess
: the function to execute after build is done successfully
The APIs related to react-dev-utils.
- webpackHotDevClientPath:the real path of webpackHotDevClient
The webpack, useful to register extra webpack plugins.
Register babel for extra files.
MIT