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

@fdnpm/fd-webpack-component

v1.1.1

Published

组件专用webpack4中间件

Readme

组件专用 webpack 中间件

概述

功能:

1.为 dev 模式、build 模式提供 webpack 服务,2 种模式可设置不同入口。

2.build 模式将根据入口文件,打包为单个 js。

3.提供 library 和 libraryTarget 配置

使用说明

参数

dev 模式:

{
      port: 3333
      env: dev
      entryJs: main.js   开发入口文件,可更改,但必须位于preview文件夹
      publicPath: //localhost:3333
      proxy: {
          context: ["/api", "/auth","/award"],
          options: {
               target: 'http://localhost:8080'
          }
     }
}

build 模式:

{
      env: prod
      entryJs: index.js   打包入口文件,可更改,但必须位于src文件夹,如更改需同步更改package.json的main值。
      library: 'vueToast'
      libraryTarget: 'umd'
      publicPath: /
}

library 和 libraryTarget 配置,请参考:https://webpack.docschina.org/guides/author-libraries

可配合 freedom-cli 组件模板使用。

组件模板:https://gitlab.com/frontendDevelopTpl/fd-template-vue-component

上线日志

| 时间 | 版本 | 上线文件 | 上线功能 | | --------- | ----- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | 2019.9.5 | 1.1.1 | | 修改默认预览文件夹为 example | | 2019.5.21 | 1.0.5 | | 精简部分依赖 | | 2019.4.18 | 1.0.3 | | 1.为 dev 模式、build 模式提供 webpack 服务,2 种模式可设置不同入口。2.build 模式将根据入口文件,打包为单个 js。3.提供 library 和 libraryTarget 配置 |