Skip to content

本地发布

DANGER

已废弃,请使用 plugin-light-cli

可以在 nodejsbash 中使用。

如何使用

安装

bash
pnpm add @plugin-light/webpack-loader-publish -D

nodejs 中使用

ts
const { LOADER: publishUtil } = require('@plugin-light/webpack-loader-publish');

node publishUtil [prod|test]

bash 中使用

bash
# 工具暴露 light-cli 命令
npx light-cli publish `[prod|test]`

默认值

ts
export const DEFAULT_PUBLISH_OPTIONS = {
  port: '3005',
  method: 'POST',
  path: '/web-publish/publish',
} as const;

环境变量

  • VUE_APP_LOCAL_PUBLISH_HOST,对应 host
  • VUE_APP_LOCAL_PUBLISH_PORT,对应 port
  • VUE_APP_LOCAL_PUBLISH_METHOD,对应 method
  • VUE_APP_LOCAL_PUBLISH_PATH,对应 path

更新日志

点此查看