当我同时使用 TailWind CSS 与 Naive UI 的时候,Naive UI 的 按钮样式会错误,原因是 vite 会把CSS插入到 标签的最后,覆盖了 Naive UI 的样式。我想问的是我想控制 CSS的插入位置或者时机,我该怎么做?
https://stackblitz.com/edit/vitejs-vite-7hjumw?file=src%2FApp.vue&terminal=dev
System:
OS: macOS 12.1
CPU: (8) arm64 Apple M1
Memory: 178.88 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 17.3.0 - /opt/homebrew/bin/node
Yarn: 3.1.1 - /opt/homebrew/bin/yarn
npm: 8.3.0 - /opt/homebrew/bin/npm
Watchman: 2021.12.27.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 96.0.4664.110
Firefox: 94.0.1
Safari: 15.2
npmPackages:
@vitejs/plugin-vue: ^2.0.0 => 2.0.1
vite: ^2.7.2 => 2.7.9