mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
bin dev serve
This commit is contained in:
@@ -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: './',
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -9,7 +9,9 @@ module.exports = (appInfo) => {
|
||||
/**
|
||||
* 开发者工具
|
||||
*/
|
||||
config.openDevTools = true;
|
||||
config.openDevTools = {
|
||||
mode: 'bottom'
|
||||
};
|
||||
|
||||
/**
|
||||
* 应用程序顶部菜单
|
||||
|
||||
@@ -9,7 +9,9 @@ module.exports = (appInfo) => {
|
||||
/**
|
||||
* 开发者工具
|
||||
*/
|
||||
config.openDevTools = false;
|
||||
config.openDevTools = {
|
||||
mode: 'bottom'
|
||||
};
|
||||
|
||||
/**
|
||||
* 应用程序顶部菜单
|
||||
|
||||
Reference in New Issue
Block a user