1 Star 0 Fork 1

youvy/nuxt_template

forked from zhizou/nuxt_template 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nuxt.config.js 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
zhizou 提交于 2020-07-07 16:58 . :wrench:添加全局css
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'},
{rel: "stylesheet", href: "https://cdn.bootcdn.net/ajax/libs/Swiper/5.4.2/css/swiper.min.css"},
],
script: [
{
type: "text/javascript",
src: "https://cdn.bootcdn.net/ajax/libs/Swiper/5.4.2/js/swiper.min.js"
},
]
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
"~/assets/css/reset.scss",
"~/assets/css/common.scss",
"ant-design-vue/dist/antd.css",
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'@/plugins/antd-ui',
'@/plugins/axios',
'@/plugins/babel-plugin',
],
/*
** Nuxt.js dev-modules
*/
buildModules: [],
/*
** Nuxt.js modules
*/
modules: [],
/*
** Build configuration
*/
build: {
extractCSS: {allChunks: true},
/*
** You can extend webpack config here
*/
extend(config, ctx) {
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/youvy/nuxt_template.git
[email protected]:youvy/nuxt_template.git
youvy
nuxt_template
nuxt_template
master

搜索帮助