1.0.5 • Published 6 years ago

sftp-after-webpack v1.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

sftp-after-webpack

a webpack plugin for sftp after webpack;

install

webpack.config.js

npm i --save-dev sftp-after-webpack
or
yarn add sftp-after-webpack --dev

example

example 1

webpack.config.js

const SftpAfterWebpack = require('sftp-after-webpack');

module.exports = {
    // ...
  plugins: [
    new SftpAfterWebpack()
  ]
};

package.json

"sftp-config": {
    "host": "*.*.*.*",
    "port": "22",
    "username": "username",
    "password": "password",
    "localPath":"/path/to/localPath",//not required default webpack output path
    "remotePath": "/path/to/remoPath"
  },

example 2

webpack.config.js

const SftpAfterWebpack = require('sftp-after-webpack');

module.exports = {
    // ...
  plugins: [
    new SftpAfterWebpack({
        "host": "*.*.*.*",
        "port": "22",
        "username": "username",
        "password": "password",
        "localPath":"/path/to/localPath",//not required default webpack output path
        "remotePath": "/path/to/remoPath"
    })
  ]
};

TODO : test mac system
you can fork and config yourself

changelog add localPath config

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago