我在用着vite https://github.com/vuejs/vite 0.16.6
并想将 vuepress 站点迁移到使用 vite。
但是我不确定如何配置 vite 以使用 tailwindcss。
in my index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
经过一番挖掘后,看起来我们必须包括一个postcss.config.js
在应用程序的根目录中
module.exports = {
plugins: [
// ...
require('tailwindcss'),
require('autoprefixer'),
// ...
]
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)