0.1.5 • Published 1 year ago

unplugin-ftp-upload v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

unplugin-ftp-upload

NPM version

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

Usage

optionsdesctypedefaultmust
hostservice hoststring
portservice portstring
usernameservice usernamestring
passwordservice passwordstring
serviceDirwebsite dir in your servicestring
delayHow long after the package is completenumber1500ms
backupPathbackup file pathstring

other config, look here

Install

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

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

Example: playground/

<br></details>

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

<br></details>

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

<br></details>