mirror of
https://github.com/insistence/RuoYi-Vue3-FastAPI.git
synced 2026-10-15 05:19:14 +00:00
* feat: 支持 v2 插件、原生扩展与签名发布 * fix: 修复测试 * feat: 增强宿主 SDK、运行观测与制品维护能力 * feat: 增强文件传输、配置观测与本地开发能力 * feat: 支持 SSE 实时事件流并完善开发脚手架 * feat: 完善长连接鉴权复核与关闭回收 * feat: 增强生命周期与任务关闭可靠性 * feat: 收紧健康检查契约并补齐前端与真实网络验收 * feat: 增加SDK溯源与离线更新工具并验证跨版本兼容 * feat: 增加持久化业务示例与受控 Python 交付 * feat: 增加统一运行诊断与多worker状态观测 * feat: 增加固定目标发布等待与自动验收 * fix: 修复多环境插件部署前缀与代理配置不一致 * fix: 修复测试
38 lines
975 B
JavaScript
38 lines
975 B
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
// 开发配置只在本地服务注入,生产页面由宿主注入真实插件标识与部署基址。
|
|
export default {
|
|
base: './',
|
|
plugins: [
|
|
{
|
|
name: 'local-task-plugin-config',
|
|
apply: 'serve',
|
|
transformIndexHtml(html, context) {
|
|
if (context.path !== '/index.html' && context.path !== '/') return html
|
|
return {
|
|
html,
|
|
tags: [
|
|
{
|
|
tag: 'script',
|
|
attrs: { id: 'ruoyi-plugin-config', type: 'application/json' },
|
|
children: JSON.stringify({ pluginId: 'task_demo' }),
|
|
injectTo: 'head',
|
|
},
|
|
],
|
|
}
|
|
},
|
|
},
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@ruoyi/plugin-bridge': fileURLToPath(
|
|
new URL(
|
|
'../../../../../../ruoyi-fastapi-frontend/src/utils/pluginBridge.js',
|
|
import.meta.url
|
|
)
|
|
),
|
|
},
|
|
},
|
|
build: { sourcemap: false },
|
|
}
|