File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const rawArgv = process.argv.slice(2)
5
5
const args = rawArgv . join ( ' ' )
6
6
7
7
if ( process . env . npm_config_preview || rawArgv . includes ( '--preview' ) ) {
8
- run ( `vue-cli-service build ${ args } ` )
8
+ run ( `vue-cli-service build ${ args } --report ` )
9
9
10
10
const port = 9526
11
11
const publicPath = config . publicPath
@@ -23,7 +23,10 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
23
23
24
24
app . listen ( port , function ( ) {
25
25
console . log (
26
- chalk . green ( `> Listening at http://localhost:${ port } ${ publicPath } ` )
26
+ chalk . green ( `> Preview at http://localhost:${ port } ${ publicPath } ` )
27
+ )
28
+ console . log (
29
+ chalk . green ( `> Report at http://localhost:${ port } ${ publicPath } /report.html` )
27
30
)
28
31
} )
29
32
} else {
Original file line number Diff line number Diff line change 8
8
"dev" : " vue-cli-service serve" ,
9
9
"build:prod" : " vue-cli-service build" ,
10
10
"build:stage" : " vue-cli-service build --mode staging" ,
11
- "build:preview" : " node build/index.js --preview" ,
12
- "build:report" : " node build/index.js --report" ,
11
+ "preview" : " node build/index.js --preview" ,
13
12
"lint" : " eslint --ext .js,.vue src" ,
14
13
"test" : " npm run lint" ,
15
14
"test:unit" : " vue-cli-service test:unit" ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default {
42
42
}
43
43
44
44
.fixed-header +.app-main {
45
- padding-top : 80 px ;
45
+ padding-top : 84 px ;
46
46
}
47
47
}
48
48
</style >
You can’t perform that action at this time.
0 commit comments