Nuxt Mailpit
在 Nuxt 开发工具中轻松集成 Mailpit 网页界面。
功能
- 🧙 开发工具集成:直接从 Nuxt 开发工具访问 Mailpit 网页界面。
快速设置
- 将
nuxt-mailpit
依赖项添加到您的项目
npx nuxi@latest module add mailpit
- 将
nuxt-mailpit
添加到nuxt.config.ts
的modules
部分
export default defineNuxtConfig({
modules: [
'nuxt-mailpit'
]
})
- 确保您已安装并运行 Mailpit。
就是这样!您现在可以在 Nuxt 应用程序中使用 Mailpit 了 ✨
模块选项
export default defineNuxtConfig({
modules: ["nuxt-mailpit"],
mailpit: {
// Enable or disable the Mailpit web UI in devtools
devtools: true,
// The URL of the Mailpit web UI
webUiUrl: "https://:8025",
}
})
贡献
欢迎提出新功能建议、错误报告和拉取请求!
开发
# Install dependencies
pnpm install
# Generate type stubs
pnpm run dev:prepare
# Develop with the playground
pnpm run dev
# Build the playground
pnpm run dev:build
# Run ESLint
pnpm run lint
# Run Vitest
pnpm run test
pnpm run test:watch
# Release new version
pnpm run release