1 Star 0 Fork 331

有凡/smart-flow-design

forked from GunsFlow/smart-flow-design 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
vue.config.js 1.25 KB
Copy Edit Raw Blame History
const debug = process.env.NODE_ENV !== 'production';
module.exports = {
pages: {
index: {
// 页面入口
entry: 'examples/main.js',
// 模板来源
template: 'pubilc/index.html',
// 输出文件名
filename: 'index.html',
},
},
productionSourceMap: false,
css: {
loaderOptions: {
less: {
modifyVars: {
// "primary-color": "#13c2c2",
'primary-color': '#ff8126',
'background-color': '#ff8126',
'layout-color': '#9867f7',
// "layout-color": "#ee88aa"
},
javascriptEnabled: true,
},
},
},
configureWebpack: (config) => {
// 开发环境配置
if (debug) {
config.devtool = 'source-map';
} else {
// lib时 vue配置externals(打包优化)
/* config.externals = {
axios: 'axios',
vue: 'Vue',
vuex: 'Vuex',
'vue-router': 'VueRouter',
html2canvas: 'html2canvas',
'vue-uuid': 'uuid',
}; */
}
},
devServer: {
port: 83,
proxy: {
'/api': {
target: process.env.VUE_APP_API_BASE_URL,
ws: false,
changeOrigin: true,
pathRewrite: {
'^/api': '', // 需要rewrite的,
},
},
},
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/foundyou/smart-flow-design.git
git@gitee.com:foundyou/smart-flow-design.git
foundyou
smart-flow-design
smart-flow-design
master

Search