1 Star 0 Fork 3

chenshiying007 / DynamicVue2-低代码

forked from 警醒 / DynamicVue2-低代码 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
警醒 提交于 2022-09-06 21:28 . 处理 treeOption 为空bug
const path = require('path')
module.exports = {
// devtool: 'source-map',
productionSourceMap:false,
publicPath: '/DynamicVue2/',
assetsDir: './DynamicVue2/',
lintOnSave: true,
configureWebpack: {
resolve: {
alias: {
assets: '@/assets',
common: '@/common',
components: '@/components',
packages: '@/packages',
views: '@/views'
}
},
devServer: {
host: '0.0.0.0',
port: 8081,
open: false
}
},
chainWebpack: config => {
const oneOfsMap = config.module.rule('scss').oneOfs.store
oneOfsMap.forEach(item => {
item.use('sass-resources-loader')
.loader('sass-resources-loader')
.options({
resources: [
'./src/assets/styles/resources/*.scss',
'./src/assets/sprites/*.scss'
]
})
.end()
})
// config.plugin('html')
// .tap(args => {
// args[0].title = process.env.VUE_APP_TITLE
// if (isCDN) {
// args[0].cdn = cdn
// }
// args[0].debugTool = process.env.VUE_APP_DEBUG_TOOL
// return args
// })
}
// pluginOptions: {
// lintStyleOnBuild: true,
// stylelint: {
// fix: true
// },
// },
}
1
https://gitee.com/csy007/DynamicVue2.git
git@gitee.com:csy007/DynamicVue2.git
csy007
DynamicVue2
DynamicVue2-低代码
master

搜索帮助