1 Star 0 Fork 76

Graduation Project-dgf/heyui-admin

forked from heyui/heyui-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
杜高飞 提交于 2021-04-12 23:25 . commit
const path = require('path');
const webpack = require('webpack');
const globalVars = require('./src/css/var.js');
module.exports = {
pages: {
index: {
entry: 'src/app.js',
template: 'index.html',
filename: 'index.html',
chunks: ['chunk-vendors', 'chunk-common', 'index']
}
},
css: {
loaderOptions: {
less: {
globalVars
}
}
},
configureWebpack: {
resolve: {
alias: {
model: path.resolve(__dirname, 'src/js/model/'),
js: path.resolve(__dirname, 'src/js/'),
components: path.resolve(__dirname, 'src/components/')
}
},
plugins: [
new webpack.ProvidePlugin({
Utils: [path.resolve(__dirname, 'src/js/common/utils'), 'default'],
Manba: 'manba',
HeyUI: 'heyui',
Model: 'js-model',
G: 'hey-global',
log: 'hey-log',
R: [path.resolve(__dirname, 'src/js/common/request'), 'default']
})
]
},
devServer: {
// proxy: {
// 此处应该配置为开发服务器的后台地址
// 配置文档: https://cli.vuejs.org/zh/config/#devserver-proxy
// '/api': {
// target: 'http://xxx.xx.xx'
// }
// }
}
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/graduation-project-dgf/heyui-admin.git
git@gitee.com:graduation-project-dgf/heyui-admin.git
graduation-project-dgf
heyui-admin
heyui-admin
develop-shop

搜索帮助