File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 3
3
"webpackConfig" : "webpack.main.additions.js"
4
4
} ,
5
5
"renderer" : {
6
+ "template" : "src/renderer/index.html" ,
6
7
"webpackConfig" : "webpack.renderer.additions.js"
7
8
}
8
9
}
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < style >
6
+ .splash {
7
+ font-size : xx-large;
8
+ margin : 0 ;
9
+ position : absolute;
10
+ top : 50% ;
11
+ left : 50% ;
12
+ transform : translate (-50% , -50% );
13
+ }
14
+ </ style >
15
+ </ head >
16
+ < body >
17
+ < div id ="app "> < p class ="splash "> Scratch Desktop is loading...</ p > </ div >
18
+ </ body >
19
+ </ html >
Original file line number Diff line number Diff line change 1
- import './app.jsx' ;
1
+ // this is an async import so that it doesn't block the first render
2
+ // index.html contains a loading/splash screen which will display while this import loads
3
+ import ( './app.jsx' ) ;
You can’t perform that action at this time.
0 commit comments