Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在vitepress中使用tailwindcss v3时‘阅读增强’插件渲染出现无关元素 #383

Open
ikenxuan opened this issue Jan 31, 2025 · 0 comments

Comments

@ikenxuan
Copy link

如视频所示

PixPin_2025-01-31_13-09-36.mp4

vitepress版本 1.6.3
vitepress-plugin-enhanced-readabilities版本 2.12.1
tailwindcss版本 3.4.17 换成v4也是这样

阅读增强插件注册参考 https://vitepress.dev/guide/extending-default-theme#using-view-transitions-api

tailwindcss配置

// tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
  content: [
    "./index.html",
    "./docs/.vitepress/theme/components/*.{vue,js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
// postcss.config.js
export default {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant