{"id":18484145,"url":"https://github.com/jdf2e/webpack-upload-plugin","last_synced_at":"2025-04-08T18:33:09.045Z","repository":{"id":57279989,"uuid":"99218607","full_name":"jdf2e/webpack-upload-plugin","owner":"jdf2e","description":"webpack upload plugin","archived":false,"fork":false,"pushed_at":"2017-11-22T08:30:41.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T18:02:08.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdf2e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-03T10:01:29.000Z","updated_at":"2019-06-04T09:43:25.000Z","dependencies_parsed_at":"2022-09-13T18:51:57.057Z","dependency_job_id":null,"html_url":"https://github.com/jdf2e/webpack-upload-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Fwebpack-upload-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Fwebpack-upload-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Fwebpack-upload-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdf2e%2Fwebpack-upload-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdf2e","download_url":"https://codeload.github.com/jdf2e/webpack-upload-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247902734,"owners_count":21015506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T12:38:43.768Z","updated_at":"2025-04-08T18:33:04.733Z","avatar_url":"https://github.com/jdf2e.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jdf2e-webpack-upload-plugin\n\n## Install\n\n```javascript\nnpm install jdf2e-webpack-upload-plugin\n```\n\n## Usage\n\n```javascript\nvar webpack = require('webpack')\nvar path = require('path')\nvar webpackUploadPlugin = require('jdf2e-webpack-upload-plugin')\n\nmodule.exports = {\n    entry: {\n        main: './index.js',\n        vendor: 'moment'\n    },\n    output: {\n        filename: '[name].[chunkhash].js',\n        path: path.resolve(__dirname, 'dist')\n    },\n    plugins: [\n        new webpack.optimize.CommonsChunkPlugin({\n            name: ['vendor', 'manifest']\n        }),\n        new webpackUploadPlugin({\n            host: '192.168.1.1',\n            target: 'webpackTest'\n        })\n    ]\n}\n```\n\n## Options\n\n* `host`: 要上传的目标服务器ip地址，默认为`73`\n* `source`: 要上传的本地文件夹，例如`source: dist`\n* `serverDir`: 上传到目标服务器的文件夹名称，例如：`misc.360buy.com`、`static.360buy.com`、`page.jd.com`，默认为第一个\n* `port`: 服务器端口号，默认为`3000`\n* `target`: 上传到服务器之后的目录名称。不要以`/`开头，否则会被认为是服务器的根目录。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdf2e%2Fwebpack-upload-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdf2e%2Fwebpack-upload-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdf2e%2Fwebpack-upload-plugin/lists"}