Commit 18d0825c authored by wangdng's avatar wangdng

fix

parent 333a40d7
......@@ -25,7 +25,7 @@ else build()
function clean () {
del.sync(['build/*', '!build/icons', '!build/icons/icon.*'])
//console.log(`\n${doneLog}\n`)
console.log(`\n${doneLog}\n`)
process.exit()
}
......@@ -44,8 +44,8 @@ function build () {
m.on('success', () => {
process.stdout.write('\x1B[2J\x1B[0f')
//console.log(`\n\n${results}`)
//console.log(`${okayLog}take it away ${chalk.yellow('`electron-builder`')}\n`)
console.log(`\n\n${results}`)
console.log(`${okayLog}take it away ${chalk.yellow('`electron-builder`')}\n`)
process.exit()
})
......@@ -54,7 +54,7 @@ function build () {
m.success('main')
}).catch(err => {
m.error('main')
//console.log(`\n ${errorLog}failed to build main process`)
console.log(`\n ${errorLog}failed to build main process`)
console.error(`\n${err}\n`)
process.exit(1)
})
......@@ -64,7 +64,7 @@ function build () {
m.success('renderer')
}).catch(err => {
m.error('renderer')
//console.log(`\n ${errorLog}failed to build renderer process`)
console.log(`\n ${errorLog}failed to build renderer process`)
console.error(`\n${err}\n`)
process.exit(1)
})
......@@ -102,9 +102,9 @@ function web () {
del.sync(['dist/web/*', '!.gitkeep'])
webConfig.mode = 'production'
webpack(webConfig, (err, stats) => {
if (err || stats.hasErrors()) //console.log(err)
if (err || stats.hasErrors()) console.log(err)
//console.log(stats.toString({
console.log(stats.toString({
chunks: false,
colors: true
}))
......@@ -127,6 +127,6 @@ function greeting () {
font: 'simple3d',
space: false
})
} else //console.log(chalk.yellow.bold('\n lets-build'))
//console.log()
} else console.log(chalk.yellow.bold('\n lets-build'))
console.log()
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment