Skip to content
PluginStats

miniprogram-webpack-plugin weekly downloads statistics

By fupengl · npm · Webpack plugins

微信小程序 Webpack 插件

View on npm Fresh · Oct 29, 2026

miniprogram-webpack-plugin has 4 recorded weekly downloads on npm, ranking #2273 of 2,667 tracked listings.

Weekly downloads
4
Official API · Oct 27, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#2273
Among tracked npm listings

About miniprogram-webpack-plugin

miniprogram-webpack-plugin

微信小程序 webpack 插件

为什么要使用 webpack
  • 支持通过 yarn 或 npm 引入和使用 node_modules 模块
  • 支持丰富且灵活的 loaders 和 plugins
  • 支持 alias
  • 支持 sass、less
  • 支持引入npm自定义组件
为什么要使用这个插件
  • 微信小程序开发需要有多个入口文件(如 app.js, app.json, pages/index/index.js 等等),使用这个插件只需要引入 app.js 即可,其余文件将会被自动引入
  • 若多个入口文件(如 pages/index/index.js 和 pages/logs/logs.js)引入有相同的模块,这个插件能避免重复打包相同模块
  • 支持自动复制 app.json 上的 tabbar 图片json文件
  • 支持分包加载,自动提取分析common.js到分包root目录下

使用方法

安装
npm i -S miniprogram-webpack-plugin
配置 webpack
  1. 在 entry 上引入 { app: './src/app.js' }, 这里的 ./src/app.js 为微信小程序开发所需的 app.js。注意 key 必须为 app,value为app.js文件)

  2. 在 output 上设置 filename: '[name].js'。 注意 这里 [name].js 是因为 webpack 将会打包生成多个文件,文件名称将以 [name] 规则来输出

  3. 添加 new MiniProgramWebpackPlugin() 到 plugins

完整的项目开发脚手架,请查看 quickstart-miniprogram

API

MiniProgramWebpackPlugin
用法

webpack.config.babel.js

import MiniProgramWebpackPlugin from 'miniprogram-webpack-plugin';
export default {
  // ...configs,
  plugins: [
    // ...other,
    new MiniProgramWebpackPlugin(options)
  ],
};
Options

所有 Options 均为可选

  • clear (<Boolean>): 在启动 webpack 时清空 output 目录。默认为 true
  • extensions (<Array<String>>): 脚本文件后缀名。默认为 ['.js','ts']
  • include (<Array<String>>): 静态资源目录。eg:[" /assets/**/* "]
  • exclude (<Array<String>>): 排除静态资源目录。eg:[" /doc/**/* "]

提示

  • 程序的开发方式与 微信小程序开发文档 一样,开发者需要在 src (源)目录创建 app.js、app.json、app.wxss、pages/index/index.js 之类的文件进行开发
  • 引入node_modules的包,只需要usingComponents中对应组件增加/npm-components这个前缀,打包出来会提取node_modules中的组定义组件到输出目录npm-components文件夹

License

MIT © fupengl

Description from the npm listing.

  • miniprogram
  • weapp
  • webpack
  • webpack-plugin
  • miniprogram-webpack
  • wxapp-webpack

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

miniprogram-webpack-plugin weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 27, 2026.miniprogram-webpack-pluginWeekly downloads on npm · Last 90 days4downloads / week3.63.844.24.4Jul 29Aug 13Aug 28Sep 12Sep 27Oct 12Oct 27downloads / weekOct 27, 2026 – Oct 27, 2026 · 1 observations · Updated Oct 27, 2026pluginstats.com
miniprogram-webpack-plugin weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 27, 2026.

7/30/90-day growth

miniprogram-webpack-plugin weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.miniprogram-webpack-pluginWeekly downloads growth on npm4downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 27, 2026pluginstats.com
miniprogram-webpack-plugin weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

miniprogram-webpack-plugin npm ranking history: currently #2273 (by weekly downloads).miniprogram-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#2273current rank#2271#2272#2273#2274#2275Jul 31Aug 15Aug 30Sep 14Sep 29Oct 14Oct 29rankOct 29, 2026 – Oct 29, 2026 · 1 observations · Updated Oct 27, 2026pluginstats.com
miniprogram-webpack-plugin npm ranking history: currently #2273 (by weekly downloads).

Listing placement

All npm2,667 listings · 134 pages · 1,335 shown · page 127, #8 (overall #2,528)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins282 listings · 15 pages · page 14, #2 (overall #262)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (1)
Recent weekly downloads observations for miniprogram-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
4—

Similar npm Webpack plugins plugins

All 20 miniprogram-webpack-plugin alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/miniprogram-webpack-plugin. First seen Oct 29, 2026; last successful collection Oct 29, 2026. See the methodology.