diff --git a/build/index.js b/build/index.js index fd9b9ff5..3b65a792 100644 --- a/build/index.js +++ b/build/index.js @@ -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 @@ -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 { diff --git a/package.json b/package.json index 943a271a..ac8fffa0 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index c7b46005..62e6ace5 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -42,7 +42,7 @@ export default { } .fixed-header+.app-main { - padding-top: 80px; + padding-top: 84px; } }