@laynezh/vite-plugin-lib-assets weekly downloads statistics
By laynezh · npm · Vite plugins
A Vite Plugin extracts resource files referenced in library mode instead of embedded them as base64.
@laynezh/vite-plugin-lib-assets has 12,792 recorded weekly downloads on npm, a decrease of 55.9% over the past 30 days.
It ranks #850 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -57.7%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About @laynezh/vite-plugin-lib-assets
English | 中文
@laynezh/vite-plugin-lib-assets
A Vite Plugin extracts resource files referenced in library mode instead of embedded them as base64.
Install
Or
Or
Usage
Example: playground/
Hints
• If build.ssr is set to true, you might want to enable build.ssrEmitAssets, so assets are emitted.
Option
include
A valid picomatch pattern, or array of patterns indicate which files need to be handled by the plugin.
• Type: string | RegExp | (string | RegExp)[] • Default: Same as Vite's default value for assetsInclude, you can find the complete list here. • Example:
exclude
Same as include, but it is used to indicate the files that should to be omitted.
• Type: string | RegExp | (string | RegExp)[] • Default: undefined. • Example:
name
Output name of the resource file, its usage aligns with the name option of the file-loader.
• Type: string • Default: '[contenthash].[ext]' • Example: The complete list can be found at loader-utils#interpolatename
limit
Files larger than the limit will be extracted to the output directory, smaller files will remain embedded in the artifact in base64 format.
• Type: number,unit Byte • Default: undefined,any size of resource files will be extracted • Example:
outputPath
Specify the output path where the extracted files will be placed.
• Type: string | ((url: string, resourcePath: string, resourceQuery: string) => string) • Default: Vite's assetsDir configuration. • Example: • string • function
regExp
Specifies a Regular Expression to extract parts of content(capture groups) from the file path and use [N] as placeholders in the name for replacement. Its usage aligns with the regexp option of the file-loader.
• Type: RegExp • Default: undefined • Example:
publicUrl
Access path prefix for built resource files. *Once provided, it will take effect, even while building the cjs and esm formats.*
• Type: string • Default: '' • Example:
Description from the npm listing.
- vite-plugin
- vite
- generate lib assets
Where @laynezh/vite-plugin-lib-assets sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm Vite plugins plugins
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/@laynezh/vite-plugin-lib-assets. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.