切换导航条
切换导航条
当前项目
正在载入...
登录
术习电报
/
electron-vue-template
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
作者
张恒
2019-08-12 14:56:03 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
提交
5c027abf6a1210461813a6d4b4037abd6d8e24b7
5c027abf
1 个父辈
5a9c0daa
去除bugdev监听
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
0 行增加
和
41 行删除
.electron-vue/dev-client.js
.electron-vue/dev-runner.js
.electron-vue/dev-client.js
deleted
100644 → 0
查看文件 @
5a9c0da
const
hotClient
=
require
(
'webpack-hot-middleware/client?noInfo=true&reload=true'
)
hotClient
.
subscribe
(
event
=>
{
/**
* Reload browser when HTMLWebpackPlugin emits a new index.html
*
* Currently disabled until jantimon/html-webpack-plugin#680 is resolved.
* https://github.com/SimulatedGREG/electron-vue/issues/437
* https://github.com/jantimon/html-webpack-plugin/issues/680
*/
// if (event.action === 'reload') {
// window.location.reload()
// }
/**
* Notify `mainWindow` when `main` process is compiling,
* giving notice for an expected reload of the `electron` process
*/
if
(
event
.
action
===
'compiling'
)
{
document
.
body
.
innerHTML
+=
`
<style>
#dev-client {
background: #4fc08d;
border-radius: 4px;
bottom: 20px;
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
color: #fff;
font-family: 'Source Sans Pro', sans-serif;
left: 20px;
padding: 8px 12px;
position: absolute;
}
</style>
<div id="dev-client">
Compiling Main Process...
</div>
`
}
})
.electron-vue/dev-runner.js
查看文件 @
5c027ab
...
...
@@ -39,7 +39,6 @@ function logStats(proc, data) {
function
startRenderer
()
{
return
new
Promise
((
resolve
)
=>
{
rendererConfig
.
entry
.
renderer
=
[
path
.
join
(
__dirname
,
'dev-client'
)].
concat
(
rendererConfig
.
entry
.
renderer
)
rendererConfig
.
mode
=
'development'
const
compiler
=
webpack
(
rendererConfig
)
hotMiddleware
=
webpackHotMiddleware
(
compiler
,
{
...
...
请
注册
或
登录
后发表评论