Skip to content
PluginStats

webpack-mkcert weekly downloads statistics

By WXperia · npm · Webpack plugins

Provide certificates for webpack https dev service

View on npm Fresh · Dec 6, 2026

webpack-mkcert has 729 recorded weekly downloads on npm, an increase of 84.6% over the past 30 days, ranking #2172 of 3,247 tracked listings.

Weekly downloads
729
Official API · Dec 5, 2026
7-day growth
-71.1%
-1.8K weekly downloads
30-day growth
+84.6%
+334 weekly downloads
90-day growth
+102%
+369 weekly downloads
Rank
#2172
▼ 460 in 7 days

About webpack-mkcert

webpack-mkcert-getter

使用 mkcert 为 webpack https 开发服务提供证书支持。

效果

<details> <summary>查看</summary>

localhost

127.0.0.1

localhost

</details>

快速开始

  1. 安装依赖
yarn add webpack-mkcert
  1. 配置 webpack
const { defineConfig } = require('@vue/cli-service')

const webpackPlugin = require('webpack-mkcert')

module.exports = defineConfig(async () => {
  const https = await webpackPlugin.default({
    source: 'coding',
    hosts: ['localhost', '127.0.0.1']
  })

  return {
    transpileDependencies: true,
    devServer: {
      server: {
        type: 'https',
        options: {
          host: 'localhost',
          ...https,
        },
      }
    },
  }
})

参数

force

是否强制重新生成证书。

autoUpgrade

是否自动升级 mkcert。

source

指定 mkcert 的下载源,国内用户可以设置成 coding 从 coding.net 镜像下载,也可以提供一个自定义的 BaseSource。

mkcertPath

如果网络受限的话,可以指定一个本地的 mkcert 文件来代替网络下载。

hosts

自定义域名,默认使用 localhost + 本地 ip 列表。

移动端设备使用

为了使证书在移动设备上被信任,你必须安装根证书 rootCA.pem 文件。可以使用 mkcert -CAROOT 命令打印它所在的文件夹。

在 iOS 上,你可以使用 AirDrop 隔空投送,或者用 CA 用电子邮件发给自己,或者从 HTTP 服务器上提供。打开后,你需要在设置>已下载描述文件中安装配置文件,然后对其启用完全信任。

对于安卓系统,安装根证书 CA ,然后在你的应用程序的开发构建中启用用户根证书。见 StackOverflow 的答案。

显示插件的调试信息

设置环境变量 DEBUG=vite:plugin:mkcert

更新日志

CHANGELOG

原理

使用 mkcert 安装本地 CA 证书,并为 server.https 生成服务端证书。

友情提示

  1. mkcert 保存目录:PLUGIN_DATA_DIR
  2. 卸载 CA 证书:mkcert -uninstall

感谢

Description from the npm listing.

  • webpack-plugin
  • certificate
  • https
  • mkcert

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

webpack-mkcert weekly downloads on npm, last 90 days: 729 weekly downloads as of Dec 5, 2026, +102% over 90 days.webpack-mkcertWeekly downloads on npm · Last 90 days729downloads / week+102% over 90 days05001K1.5K2K2.5K3KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
webpack-mkcert weekly downloads on npm, last 90 days: 729 weekly downloads as of Dec 5, 2026, +102% over 90 days.

7/30/90-day growth

webpack-mkcert weekly downloads growth on npm: -71.1% over 7 days, +84.6% over 30 days, +102% over 90 days.webpack-mkcertWeekly downloads growth on npm729downloads / week now7-day growth-1,797 weekly downloads-71.1%30-day growth+334 weekly downloads+84.6%90-day growth+369 weekly downloads+102%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
webpack-mkcert weekly downloads growth on npm: -71.1% over 7 days, +84.6% over 30 days, +102% over 90 days.

Ranking history

webpack-mkcert npm ranking history: currently #2172 (by weekly downloads).webpack-mkcertnpm ranking · by weekly downloads · Last 90 days#2172current rank#1400#1500#1600#1700#1800#1900#2000#2100#2200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
webpack-mkcert npm ranking history: currently #2172 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 109, #12 (overall #2,172)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 5, #10 (overall #90)
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 (170)
Recent weekly downloads observations for webpack-mkcert
Date (UTC)Weekly downloadsChange vs. previous
729-5
734-45
779-174
953-459
1,412-439
1,851-448
2,299-227
2,526+15
2,511-30
2,541-2
2,543+399
2,144+468
1,676+475
1,201—

Similar npm Webpack plugins plugins

All 20 webpack-mkcert 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/webpack-mkcert. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.