Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

postcss配置tailwindcss无效(支持tailwindcss) #2807

@maYunLaoXi

Description

@maYunLaoXi

Description

npm install autoprefixer tailwindcss postcss
wepy.config.js
compilers: { plugins: { tailwindcss: {}, autoprefixer: {}, } }
app.wpy文件中的<style>无法编译
@tailwind base; @tailwind components; @tailwind utilities;

Environment

  • Platform: [开发者工具]
  • Platform version: [ios12]
  • Wechat version: [微信版本号]
  • wepy-cli version: [1.7.3-beta1]
  • wepy version: [1.7.2-beta3]

Reproduce

[如何重现问题]

[How to reproduce the issue]

Observed Results

[实际表现]

[Observed Results]

Expected Results

[期望表现]

[Expected Results]

Relevant Code / Logs

// TODO(you): code or logs here to reproduce the problem
 // 可以使用小程序代码片段功能,方便其它人帮助你定位代码问题
 // 详情可参考这里:https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
 ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions