vite 提示 Dynamic require of "tailwindcss" is not supported的解决办法
之前用没问题,也许是新版的问题。
vite.config.js
import tailwindcss from 'tailwindcss'
......
css: {
postcss: {
plugins: [tailwindcss],
},
},
.....
之前用没问题,也许是新版的问题。
vite.config.js
import tailwindcss from 'tailwindcss'
......
css: {
postcss: {
plugins: [tailwindcss],
},
},
.....