unplugin-ftp-upload
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

unplugin-ftp-upload

NPM version

After you build your project, automatically upload the project to your service.

Usage

options desc type default must
host service host string
port service port string
username service username string
password service password string
serviceDir website dir in your service string
delay How long after the package is complete number 1500ms
backupPath backup file path string

other config, look here

Install

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

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

Example: playground/

<br></details>

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

<br></details>

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

<br></details>

/unplugin-ftp-upload/

    Package Sidebar

    Install

    npm i unplugin-ftp-upload

    Weekly Downloads

    2

    Version

    0.1.5

    License

    MIT

    Unpacked Size

    34.2 kB

    Total Files

    25

    Last publish

    Collaborators

    • legend0610