bin dev serve

This commit is contained in:
gaoshuaixing
2023-08-21 18:41:35 +08:00
parent 7a5a5e0ee7
commit 33d1be4dc4
4 changed files with 10 additions and 26 deletions

View File

@@ -9,11 +9,12 @@ module.exports = {
*/
dev: {
frontend: {
protocol: 'http://',
directory: './frontend',
cmd: 'npm run dev',
protocol: 'http://',
hostname: 'localhost',
port: 8080,
indexPath: 'view_example.html'
},
electron: {
directory: './',

View File

@@ -9,27 +9,6 @@ module.exports = (appInfo) => {
const config = {};
/**
* 应用模式配置
*/
config.developmentMode = {
default: 'vue',
mode: {
vue: {
hostname: 'localhost',
port: 8080
},
react: {
hostname: 'localhost',
port: 3000
},
html: {
hostname: 'localhost',
indexPage: 'index.html'
},
}
};
/**
* 开发者工具
*/
@@ -132,9 +111,9 @@ module.exports = (appInfo) => {
* 主进程
*/
config.mainServer = {
protocol: 'file://',
protocol: 'http://',
indexPath: '/public/dist/index.html',
host: 'localhost',
host: '127.0.0.1',
port: 7072,
};

View File

@@ -9,7 +9,9 @@ module.exports = (appInfo) => {
/**
* 开发者工具
*/
config.openDevTools = true;
config.openDevTools = {
mode: 'bottom'
};
/**
* 应用程序顶部菜单

View File

@@ -9,7 +9,9 @@ module.exports = (appInfo) => {
/**
* 开发者工具
*/
config.openDevTools = false;
config.openDevTools = {
mode: 'bottom'
};
/**
* 应用程序顶部菜单