代码拉取完成,页面将自动刷新
同步操作将从 ZY/vue3-composition-admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* @Description:配置文件
* @Author: ZY
* @Date: 2020-12-07 11:41:22
* @LastEditors: ZY
* @LastEditTime: 2021-01-27 15:17:29
*/
const { resolve } = require('path')
const path = require('path')
const WebpackBar = require('webpackbar');
const dayjs = require('dayjs')
const time = dayjs().format('YYYY-M-D HH:mm:ss')
process.env.VUE_APP_UPDATE_TIME = time
const {
publicPath,
assetsDir,
outputDir,
lintOnSave,
transpileDependencies,
title,
devPort,
} = require('./src/config/default/vue.custom.config')
module.exports = {
publicPath,
assetsDir,
outputDir,
lintOnSave,
transpileDependencies,
devServer: {
hot: true,
port: devPort,
open: true,
noInfo: false,
overlay: {
warnings: true,
errors: true,
},
},
pluginOptions: {
'style-resources-loader': {
preProcessor: 'scss',
patterns: [
path.resolve(__dirname, 'src/styles/_variables.scss'),
path.resolve(__dirname, 'src/styles/_mixins.scss'),
]
}
},
configureWebpack(){
return {
resolve:{
alias:{
'@':resolve('src'),
'*':resolve(''),
'Assets':resolve('src/assets')
}
},
module:{
rules: [
{
test: /\.(json5?|ya?ml)$/, // target json, json5, yaml and yml files
loader: '@intlify/vue-i18n-loader',
include: [ // Use `Rule.include` to specify the files of locale messages to be pre-compiled
path.resolve(__dirname, 'src/lang')
]
},
],
},
plugins:[
new WebpackBar({
name:title,
})
]
}
},
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。