Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

af-webpack

Package Overview
Dependencies
Maintainers
2
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

af-webpack

Unique webpack wrapper for ant financial.

  • 0.12.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
increased by8.31%
Maintainers
2
Weekly downloads
 
Created
Source

af-webpack

Unique webpack wrapper for ant financial.

Why af-webpack ?

TODO

CLIs based on af-webpack

  • umi
  • roadhog@2

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,
});

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

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

FAQs

Package last updated on 14 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc