Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Uworker Upload FileNew to Visual Studio Code? Get it now.
Uworker Upload File

Uworker Upload File

wangxiuyan

|
22 installs
| (0) | Free
upload file to page Management
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Uworker Upload File

Introduction

此插件用于Uworker页面管理模块代码更新及本地调试,可将代码上传至服务器,并在浏览器中调试静态html页面
非通用插件,定制化较强,仅限uworker项目使用

Usage

1、本地调试

选中需要调试的html文件->右键->Uworker Open In Browser

运行成功后右下角会弹出本地调试地址,并在chrome浏览器中打开调试页面

如需更改默认浏览器,在vscode Settings中添加配置项 "uworker-upload-file.default":""

2、上传文件

选中需要上传的文件->右键->Uworker Upload File

运行成功后右下角弹出成功提示

2、关闭本地node服务

长时间不使用用时可关闭启动的本地服务,释放内存 任意文件/文件夹->右键->Uworker Close Server

运行成功后右下角弹"已关闭node服务"

"uworker-upload-file.default":"ie"

项目中的Setting

创建配置文件settingConfig.json,放在项目的根目录下

参数 说明 类型 可选值 默认值 是否必填
BASE_URL 环境地址 String - - 是
PROXY_API 需要代理的api前缀 Array - - 是
HOST 本地调试ip String - "127.0.0.1" 否
PORT 本地调试端口号 Number - 9999 否
UPLOAD_API 上传代码接口 String - - 是
TOKEN_API 获取token接口 String - - 是
CLIENT_ID 获取token的appkey String - - 是
CLIENT_SECRET 获取token的appSecret String - - 是
GRANT_TYPE 获取token的固定值 String - *** 否
SERVER_FOLDER_ROOT 本地服务启动根目录 String - *** 否
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft