
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
af-webpack-extra
Advanced tools
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 startedonCompileDoneonCompileInvalidproxy: The proxy config which will pass through to webpack-dev-serverRun webpack compilation.
build({
webpackConfig,
success,
});
webpackConfig is required, other optional.
Options:
webpackConfig: the webpack configsuccess: the function to execute after build is done successfullyThe APIs related to react-dev-utils.
The webpack, useful to register extra webpack plugins.
Register babel for extra files.
MIT
{
"html": [
{
inject: false,
template: require('html-webpack-template'),
appMountId: "root",
scripts: [
"http://res.wx.qq.com/open/js/jweixin-1.2.0.js"
],
lang: "zh-CN",
mobile: true,
title: 'title',
hash: false,
links: [
{
href: IMG_BASE + 'assets/favicon.ico',
rel: 'shortcut icon'
}
],
filename: DEBUG ? 'index.html' : "index.ftl",
bodyHtmlSnippet: '',
"window": windowVars,
chunks: ['index', 'common'],
minify: {
collapseWhitespace: true,
conservativeCollapse: true,
preserveLineBreaks: true,
removeComments: true
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
},
{
inject: true,
template: 'src/demo.ejs',
hash: false,
favicon: 'public/favicon.ico',
filename: 'demo.html',
chunks: ['demo', 'common'],
}
]
}
doneCallback 参数
用于编译完成后的文件复制等操作
assetsPath 参数
配置各类型文件目录结构,用于归类 资源输出路径,默认: 图片资源:assets/img css文件:assets/css js文件:assets/js 其他文件: assets/media
{
"assetsPath": {
"media": 'assets/media/',
"js": 'assets/js/',
"css": 'assets/css/',
"img": 'assets/images/',
},
}
FAQs
Unique webpack wrapper for ant financial.
The npm package af-webpack-extra receives a total of 5 weekly downloads. As such, af-webpack-extra popularity was classified as not popular.
We found that af-webpack-extra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.