Skip to content

Upload static files to any cloud storage service and support cdn acceleration configuration

License

Notifications You must be signed in to change notification settings

bbcvc/unplugin-auto-upload

Repository files navigation

unplugin-auto-upload

NPM version

Starter template for unplugin.

Template Usage

To use this template, clone it down using:

npx degit bbcvc/unplugin-auto-upload unplugin-auto-upload

And do a global replace of unplugin-auto-upload with your plugin name.

Then you can start developing your unplugin 🔥

To test your plugin, run: pnpm run dev To release a new version, run: pnpm run release

Install

npm i unplugin-auto-upload
Vite
// vite.config.ts
import Starter from 'unplugin-auto-upload/vite'

export default defineConfig({
  plugins: [
    Starter({ /* options */ }),
  ],
})

Example: playground/


Rollup
// rollup.config.js
import Starter from 'unplugin-auto-upload/rollup'

export default {
  plugins: [
    Starter({ /* options */ }),
  ],
}


Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-auto-upload/webpack')({ /* options */ })
  ]
}


Nuxt
// nuxt.config.js
export default {
  buildModules: [
    ['unplugin-auto-upload/nuxt', { /* options */ }],
  ],
}

This module works for both Nuxt 2 and Nuxt Vite


Vue CLI
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-auto-upload/webpack')({ /* options */ }),
    ],
  },
}


esbuild
// esbuild.config.js
import { build } from 'esbuild'
import Starter from 'unplugin-auto-upload/esbuild'

build({
  plugins: [Starter()],
})


About

Upload static files to any cloud storage service and support cdn acceleration configuration

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published