File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed
packages/mars-cli-template/generator Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
- < head >
3
+
4
+ < head >
4
5
< meta charset ="utf-8 ">
5
6
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
7
< meta name ="viewport " content ="width=device-width,initial-scale=1.0 ">
7
- < title > dist-h5</ title >
8
- </ head >
9
- < body >
8
+ < title > < %= htmlWebpackPlugin.options.title %> </ title >
9
+ </ head >
10
+
11
+ < body >
10
12
< noscript >
11
- < strong > We're sorry but dist-h5 doesn't work properly without JavaScript enabled. Please enable it to continue.</ strong >
13
+ < strong > We're sorry but dist-h5 doesn't work properly without JavaScript enabled. Please enable it to
14
+ continue.</ strong >
12
15
</ noscript >
13
16
< div id ="app "> </ div >
14
17
<!-- built files will be auto injected -->
15
- </ body >
16
- </ html >
18
+ </ body >
19
+
20
+ </ html >
Original file line number Diff line number Diff line change @@ -7,5 +7,13 @@ module.exports = {
7
7
'@marsjs/api' ,
8
8
'@marsjs/components'
9
9
] ,
10
- parallel : false
10
+ parallel : false ,
11
+ chainWebpack : config => {
12
+ config
13
+ . plugin ( 'html' )
14
+ . tap ( args => {
15
+ args [ 0 ] . title = 'Mars demo' ;
16
+ return args ;
17
+ } ) ;
18
+ }
11
19
} ;
You can’t perform that action at this time.
0 commit comments