Skip to content

Commit b9fd5ae

Browse files
committed
refine script and css
1 parent 2979590 commit b9fd5ae

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

build/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const rawArgv = process.argv.slice(2)
55
const args = rawArgv.join(' ')
66

77
if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
8-
run(`vue-cli-service build ${args}`)
8+
run(`vue-cli-service build ${args} --report`)
99

1010
const port = 9526
1111
const publicPath = config.publicPath
@@ -23,7 +23,10 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
2323

2424
app.listen(port, function() {
2525
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`)
2730
)
2831
})
2932
} else {

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"dev": "vue-cli-service serve",
99
"build:prod": "vue-cli-service build",
1010
"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",
1312
"lint": "eslint --ext .js,.vue src",
1413
"test": "npm run lint",
1514
"test:unit": "vue-cli-service test:unit",

src/layout/components/AppMain.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default {
4242
}
4343
4444
.fixed-header+.app-main {
45-
padding-top: 80px;
45+
padding-top: 84px;
4646
}
4747
}
4848
</style>

0 commit comments

Comments
 (0)