透過超過 100 個技巧的集合來學習 Nuxt!

mailpit
nuxt-mailpit

在 Nuxt 開發工具中整合 Mailpit 網頁 UI

Nuxt Mailpit

npm versionnpm downloadsLicenseNuxt

輕鬆將 Mailpit 網頁 UI 整合至 Nuxt 開發工具中。

功能

  • 🧙 開發工具整合:直接從 Nuxt 開發工具存取 Mailpit 網頁 UI。

快速設定

  1. nuxt-mailpit 依賴項新增至您的專案
npx nuxi@latest module add mailpit
  1. nuxt-mailpit 新增至 nuxt.config.tsmodules 區段
export default defineNuxtConfig({
  modules: [
    'nuxt-mailpit'
  ]
})
  1. 確保您已安裝並執行 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://127.0.0.1:8025",
  }
})

貢獻

歡迎提出新功能建議、錯誤報告和 Pull Request!

開發

# 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