
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@uni-hub/modern-vue-plugin
Advanced tools
使用 Vite + Vue 3 + TypeScript 构建的现代化插件,支持 Base64 编码、文本加密和数据压缩
cd examples/modern-vue-plugin
npm install
npm run dev
这会启动 Vite 开发服务器,支持热更新。
npm run build
构建后的文件会输出到 dist/ 目录,所有资源都会内联到单个 HTML 文件中。
npm run package
或者直接运行:
./package.sh
export default defineConfig({
build: {
rollupOptions: {
output: {
// 将所有资源内联到 HTML 中
inlineDynamicImports: true,
manualChunks: undefined
}
}
}
})
npm run dev → Vite 开发服务器npm run build → 生成 dist/index.html(所有资源内联)./package.sh → 创建插件 ZIP 包| 方式 | CDN 引入 | 现代构建 |
|---|---|---|
| 依赖管理 | 手动管理版本 | npm/pnpm 自动管理 |
| 类型支持 | 无 | 完整 TypeScript 支持 |
| 组件化 | 全局组件 | 模块化组件 |
| 构建优化 | 无 | Tree-shaking, 压缩 |
| 开发体验 | 基础 | 热更新, 错误提示 |
| 文件大小 | 多个文件 | 单个优化文件 |
src/App.vue 中添加新的 TaskCardbackend/main.py 中添加对应的处理函数src/types/plugin.tssrc/App.vue 中的 CSSvite.config.ts✅ 现代开发体验: TypeScript + 热更新
✅ 组件化架构: 可维护性强
✅ 类型安全: 编译时错误检查
✅ 构建优化: 自动压缩和优化
✅ 单文件输出: 便于插件分发
✅ 开发工具: Vue DevTools 支持
FAQs
使用 Vite + Vue 3 + TypeScript 构建的现代化插件,支持 Base64 编码、文本加密和数据压缩
We found that @uni-hub/modern-vue-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.