hczz-web/vite/plugins/unocss.ts

8 lines
193 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import UnoCss from 'unocss/vite';
export default () => {
return UnoCss({
hmrTopLevelAwait: false // unocss默认是true低版本浏览器是不支持的启动后会报错
});
};