gpt4 book ai didi

css - 如何让 CSS IntelliSense 在 Nuxt 元素上工作?

转载 作者:太空宇宙 更新时间:2023-11-04 01:03:05 25 4
gpt4 key购买 nike

我正在做一个 Nuxt.js 元素,我还创建了一个 Docker 镜像来处理所有事情;我也试图包括 MDBVue作为一个 CSS 库,阅读后我明白为了使用它我必须将它作为一个插件包含在我的 nuxt.config.js 文件中;

这是我的文件的样子:

module.exports = {
/*
** Headers of the page
*/
head: {
title: 'skfe',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Nuxt.js project' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
/*
** Customize the progress bar color
*/
loading: { color: '#3B8070' },
css: [
{ src: "bootstrap-css-only/css/bootstrap.min.css" },
{ src: "mdbvue/build/css/mdb.css" }
],
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
}
}

现在 CSS 类可以工作了,但是我无法从 VSCode 获得任何自动完成功能,我必须输入完整的类名;这是正常行为还是有办法让 IntelliSense 处理我的 Vue 文件?

最佳答案

关于css - 如何让 CSS IntelliSense 在 Nuxt 元素上工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52797054/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com