【发布时间】:2022-01-05 18:29:37
【问题描述】:
有没有办法将某些类排除在摇树之外?我问的原因是在我的 JavaScript 中我使用了 arbitrary-value 例如bg-[url('/img/hero-pattern.svg')] 但 url 是通过 Vue 计算属性传递的,例如
`bg-[url('${this.image}')]`
虽然我不确定,但我不认为这是被认可的。
我知道如何将tailwind.config.js 与purge 选项一起使用,问题似乎不存在,因为Vue 组件中的其他类也包含在内。
我正在使用mode: 'jit' 选项来允许任意值。
【问题讨论】:
标签: vue.js nuxt.js tailwind-css arbitrary-values