npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

basewebpack

v1.1.5

Published

base webpack config

Downloads

20

Readme

##最基本的webpack打包方式,返回一个webpack配置对象,支持外部个性化配置传入。

##基于webpack4打包静态文件,支持单页面和多页面入口,支持最新js语法和sass语法。

打包规则:

入口文件:自动将src/pages目录下的所有文件当作入口文件,无需手动配置,会自动配置进去。 入口文件格式: src/pages/文件名/index.ejs ,打包后的入口文件名为:文件名.js。 打包模块支持:支持es6语法、sass语法、ejs模板、vue/react语法、图片压缩、文件压缩、文件分离。 其他支持:引入文件时不用写.js和.json后缀,引入文件时@符号表示src目录所在的绝对路径。 开发调试:支持webpack-dev-server。

版本说明:

1.1.5: - 拼接路径使用path.posix.join方法拼接。 1.1.4: - 修复bug,更新reademe文件。 1.1.3: - options入参增加mode属性,表示打包模式:0 表示默认,所有文件都放在dist目录中,文件引入时加hash值;1 表示将文件分类存放,引用文件不加hash值。 - options入参增加outputPath属性,用于配置打包后的输出目录。 - options入参增加spritesConfig属性,用于雪碧图配置。 1.1.2: - 修复bug,更新reademe文件。 1.1.1: - 自动检测项目中是否有.babelrc文件,如果有则使用外部配置文件,没有则使用默认babel配置。 1.1.0: - 兼容iOS8到iOS10版本系统。