一覧へ戻る
cth166/rollup-simple-ssh(新しいタブで開きます)
主要言語: TypeScript
A rollup plugin.
- star 数
- 0
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2024/02/12
主要言語: TypeScript
A rollup plugin.
Connect your server, upload your dist folder to your server after you run npm run build
This plugin is inspired by coderwhy's webpack course.
pnpm add rollup-simple-ssh -D
//rollup.config.js import { defineConfig } from "rollup"; import ssh from "rollup-simple-ssh"; export default defineConfig({ input: "./src/index.js", output: { file: "./dist/index.js", format: "es", }, plugins: [ ssh({ host: "192.168.117.133", username: "cth", // password: "123456", privateKeyPath: String.raw`C:\Users\cth16\.ssh\id_ubuntu`, remotePath: "/home/cth/Desktop/build", }), ], });
your server ip.
In order to connect your server. You can choose either privateKeyPath or password.
An absolute path, perhaps the static directory pointed to by your nginx.