服务器端渲染时将 vuetify 样式移动到 css 文件 [英] Move vuetify styles to css file when server side rendering
本文介绍了服务器端渲染时将 vuetify 样式移动到 css 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在使用 vuetify 作为前端,但自从我搬到了 nuxt.所有样式都显示在 html 页面中.
I've been using vuetify as frontend, but since I moved to nuxt. All styles are displayed within html page.
有没有办法将 vuetify 样式移动到单独的 css 文件中?
Is there a way to move vuetify styles to separate css files?
推荐答案
您需要使用 从 nuxt.config 中提取 CSS 属性
export default {
build :{
extractCSS: true
}
}
这篇关于服务器端渲染时将 vuetify 样式移动到 css 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文