1.4.1 • Published 6 years ago

jdf2e-webpack-upload-plugin v1.4.1

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

jdf2e-webpack-upload-plugin

Install

npm install jdf2e-webpack-upload-plugin

Usage

var webpack = require('webpack')
var path = require('path')
var webpackUploadPlugin = require('jdf2e-webpack-upload-plugin')

module.exports = {
    entry: {
        main: './index.js',
        vendor: 'moment'
    },
    output: {
        filename: '[name].[chunkhash].js',
        path: path.resolve(__dirname, 'dist')
    },
    plugins: [
        new webpack.optimize.CommonsChunkPlugin({
            name: ['vendor', 'manifest']
        }),
        new webpackUploadPlugin({
            host: '192.168.1.1',
            target: 'webpackTest'
        })
    ]
}

Options

  • host: 要上传的目标服务器ip地址,默认为73
  • source: 要上传的本地文件夹,例如source: dist
  • serverDir: 上传到目标服务器的文件夹名称,例如:misc.360buy.comstatic.360buy.compage.jd.com,默认为第一个
  • port: 服务器端口号,默认为3000
  • target: 上传到服务器之后的目录名称。不要以/开头,否则会被认为是服务器的根目录。
1.4.1

6 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago