Skip to content

Commit

Permalink
refine script and css
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Mar 25, 2019
1 parent 2979590 commit b9fd5ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 5 additions & 2 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const rawArgv = process.argv.slice(2)
const args = rawArgv.join(' ')

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

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

app.listen(port, function() {
console.log(
chalk.green(`> Listening at http://localhost:${port}${publicPath}`)
chalk.green(`> Preview at http://localhost:${port}${publicPath}`)
)
console.log(
chalk.green(`> Report at http://localhost:${port}${publicPath}/report.html`)
)
})
} else {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"build:preview": "node build/index.js --preview",
"build:report": "node build/index.js --report",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src",
"test": "npm run lint",
"test:unit": "vue-cli-service test:unit",
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/AppMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
}
.fixed-header+.app-main {
padding-top: 80px;
padding-top: 84px;
}
}
</style>
Expand Down

0 comments on commit b9fd5ae

Please sign in to comment.