1 Star 0 Fork 4

性感风行/vue-component

forked from 黑菜/vue-component 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nuxt.config.js 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
抹布 提交于 2020-12-03 14:38 . 增加 extend
const pkg = require('./package')
const { resolve } = require('path')
module.exports = {
mode: 'spa',
/*
** Headers of the page
*/
head: {
title: "小组件",
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes' },
{ hid: 'description', name: 'description', content: pkg.description }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/uda-logo.png' }
]
},
router: {
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [
'element-ui/lib/theme-chalk/reset.css',
'element-ui/lib/theme-chalk/index.css',
'@/assets/css/reset.scss'
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'@/plugins/element-ui',
'@/plugins/prototype',
'@/plugins/request',
'@/plugins/svg'
],
/*
** Nuxt.js modules
*/
modules: [,
// Doc:https://github.com/nuxt-community/modules/tree/master/packages/bulma
// '@nuxtjs/bulma'
// ['vue-i18n', i18n]
],
/*
** Build configuration
*/
build: {
postcss: {
preset: {
features: {
customProperties: false
}
}
},
/*
** You can extend webpack config here
*/
extend(config, ctx) {
// const svgRule = config.module.rules.find(rule => rule.test.test('.svg'))
// svgRule.exclude = [resolve(__dirname, 'assets/svg')]
//
// // Includes /assets/svg for svg-sprite-loader
// config.module.rules.push({
// test: /\.svg$/,
// include: [resolve(__dirname, 'assets/svg')],
// loader: 'svg-sprite-loader',
// options: {
// symbolId: 'icon-[name]'
// }
// })
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/xingganfengxing/vue-component.git
git@gitee.com:xingganfengxing/vue-component.git
xingganfengxing
vue-component
vue-component
develop

搜索帮助