@proj-airi/unplugin-fetch
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

@proj-airi/unplugin-download

Helper plugin for helping installing the remote assets into public dir.

Installation

Pick the package manager of your choice:

ni @proj-airi/lobe-icons -D # from @antfu/ni, can be installed via `npm i -g @antfu/ni`
pnpm i @proj-airi/unplugin-download -D
yarn i @proj-airi/unplugin-download -D
npm i @proj-airi/unplugin-download -D

UnoCSS usage

import { Download } from '@proj-airi/unplugin-download/vite'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    Download('https://dist.ayaka.moe/live2d-models/hiyori_free_zh.zip', 'hiyori_free_zh.zip', 'assets/live2d/models'),
    Download('https://dist.ayaka.moe/live2d-models/hiyori_pro_zh.zip', 'hiyori_pro_zh.zip', 'assets/live2d/models'),
  ]
})

Other side projects born from Project AIRI

Readme

Keywords

none

Package Sidebar

Install

npm i @proj-airi/unplugin-fetch

Weekly Downloads

87

Version

0.1.5

License

MIT

Unpacked Size

9.94 kB

Total Files

8

Last publish

Collaborators

  • nekomeowww
  • luoling8192