mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
Remove build logs in dev
This commit is contained in:
parent
a4461ff590
commit
6773c98d28
13
lib/build.js
13
lib/build.js
@ -38,12 +38,7 @@ const r = function () {
|
|||||||
args = args.map(normalize)
|
args = args.map(normalize)
|
||||||
return wp(resolve.apply(null, args))
|
return wp(resolve.apply(null, args))
|
||||||
}
|
}
|
||||||
const webpackStats = {
|
let webpackStats = 'none'
|
||||||
chunks: false,
|
|
||||||
children: false,
|
|
||||||
modules: false,
|
|
||||||
colors: true
|
|
||||||
}
|
|
||||||
// force green color
|
// force green color
|
||||||
debug.color = 2
|
debug.color = 2
|
||||||
|
|
||||||
@ -96,6 +91,12 @@ export function options () {
|
|||||||
}
|
}
|
||||||
// Production, create server-renderer
|
// Production, create server-renderer
|
||||||
if (!this.dev) {
|
if (!this.dev) {
|
||||||
|
webpackStats = {
|
||||||
|
chunks: false,
|
||||||
|
children: false,
|
||||||
|
modules: false,
|
||||||
|
colors: true
|
||||||
|
}
|
||||||
const serverConfig = getWebpackServerConfig.call(this)
|
const serverConfig = getWebpackServerConfig.call(this)
|
||||||
const bundlePath = join(serverConfig.output.path, serverConfig.output.filename)
|
const bundlePath = join(serverConfig.output.path, serverConfig.output.filename)
|
||||||
if (fs.existsSync(bundlePath)) {
|
if (fs.existsSync(bundlePath)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user