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 🙏

© 2024 – Pkg Stats / Ryan Hefner

qiudistupload

v1.0.3

Published

qiniu upload webpack plugin

Downloads

3

Readme

七牛云自动打包上传webpack配置文件

介绍

前端项目build后自动上传到七牛云

使用说明

  1. npm install qiudistupload -D
  2. 写入配置
module.exports = {
    ...,
    configureWebpack: config => {
        if (process.env.NODE_ENV === 'production') {
            config.plugins.push(new QiNiuUploadPlug({
                  publicPath: 'https://xxxxx', // 七牛云域名,和文件夹名称一起,自动替换默认设置的 publicPath
                  prefix, // 文件夹名称,默认 webDist
                  accessKey: 'xxxx', // 个人中心,秘钥管理,AK
                  secretKey: 'xxxx', // 个人中心,秘钥管理,SK
                  bucket: 'xxx', // 存储空间名称
                  zone: 'xxx', // 存储地区
                  cover: true, // 默认为 false, 慎用!设置为 true 会覆盖掉已经保存在七牛云上的同名文件。
                  clear: false, // 默认为 false 慎用!上传前是否清空文件夹里已上传的文件 
            }))
        }
    }
}

也可以自己改造适合自己的

  1. 把lib目录下的文件拷出来,放在项目根目录,然后在webpack里引入,用法如上
  2. 如果是vue-cli构建的项目,直接在vue.config.js里引入,用法还是如上

Tips

插件基于webpack 4.x,node 8以上的,这里注意下

码云特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  3. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目