小智 11
您可以使用以下命令将主块中的CSS提取到单独的CSS文件中
nuxt.config.js
module.exports = {
build: {
extractCSS: true
}
}
Run Code Online (Sandbox Code Playgroud)
这是记录在这里
如果要全局导入css文件,请使用
module.exports = {
css: [
// Load a Node.js module directly (here it's a Sass file)
'bulma',
// CSS file in the project
'@/assets/css/main.css',
// SCSS file in the project
'@/assets/css/main.scss'
]
}
Run Code Online (Sandbox Code Playgroud)
作为记录在这里