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

fast-vite-plugins

v1.0.5

Published

Fast Vite插件库.

Downloads

345

Readme

| En

安装

# npm 安装
npm install fast-vite-plugins -D
# pnpm 安装(推荐)
pnpm install fast-vite-plugins -D

使用

vite.config.ts:

import { defineConfig } from "vite";
import { buildSvgIcon, cdnImport, tsxComponentAutoImport, vueComponentAutoImport, versionUpdatePlugin } from "fast-vite-plugins";

export default defineConfig({
  plugins: [
    /** 构建本地 SVG 图标 */
    buildSvgIcon("./src/assets/icons", "./src/icons"),
    /** CDN 导入 */
    cdnImport({
      // 开发环境使用 CDN 路径
      enableInDevMode: true,
      prodUrl: "https://cdn.jsdelivr.net/npm/{name}@{version}/{path}",
      modules: [
        {
          name: "vue",
          var: "Vue",
          version: "3.4.27",
          path: "dist/vue.global.prod.min.js"
        },
        {
          name: "vue-router",
          var: "VueRouter",
          path: "4.2.2/dist/vue-router.global.prod.min.js"
        }
      ]
    }),
    /** TSX 组件自动导入导出 */
    tsxComponentAutoImport("./src/components"),
    /** VUE 组件自动导入导出 */
    vueComponentAutoImport("./src/components"),
    /** 打包版本号更新 */
    versionUpdatePlugin("1.0.0"),
  ]
})

更新日志

更新日志 点击查看

协议

Fast.Vite.Plugins 遵循 Apache-2.0 开源协议,欢迎大家提交 PRIssue

Apache开源许可证

版权所有 © 2018-Now 小方

特此免费授予获得本软件及其相关文档文件(以下简称“软件”)副本的任何人以处理本软件的权利,
包括但不限于使用、复制、修改、合并、发布、分发、再许可、销售软件的副本,
以及允许拥有软件副本的个人进行上述行为,但须遵守以下条件:

在所有副本或重要部分的软件中必须包括上述版权声明和本许可声明。

软件按“原样”提供,不提供任何形式的明示或暗示的保证,包括但不限于对适销性、适用性和非侵权的保证。
在任何情况下,作者或版权持有人均不对任何索赔、损害或其他责任负责,
无论是因合同、侵权或其他方式引起的,与软件或其使用或其他交易有关。

免责申明

请勿用于违反我国法律的项目上

贡献者

感谢他们的所做的一切贡献!

补充说明

如果对您有帮助,您可以点右上角 ⭐Star 收藏一下 ,获取第一时间更新,谢谢!