Skip to content

Commit 82628c6

Browse files
committed
style: optimize the content of logging
1 parent b5aab8e commit 82628c6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

bin/www

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var server = http.createServer(app.callback());
3131
*/
3232

3333
server.listen(port, () => {
34-
console.log('\nThe node appliaction is listening at', `http://localhost:${port}\n`);
34+
console.log('\n[Rephic] The node appliaction is listening at', `http://localhost:${port}\n`);
3535
});
3636
server.on('error', onError);
3737
server.on('listening', onListening);

client/build/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const webpack = require('webpack');
22
const chalk = require('chalk');
33
const webpackProdConfig = require('./webpack.prod');
44

5-
console.log(chalk.yellow('Webpack mode:', webpackProdConfig.mode));
5+
console.log(chalk.yellow('[Rephic] Webpack mode:', webpackProdConfig.mode));
66

77
const compiler = webpack(webpackProdConfig);
88
compiler.run((err, stats) => {

gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ gulp.task('watch', () => {
1212
process.env.NODE_ENV = 'development';
1313
const compiler = webpack(webpackDevConfig);
1414

15-
console.log(chalk.yellow('Webpack mode:', webpackDevConfig.mode));
16-
console.log(chalk.yellow('Webpack is building...'));
15+
console.log(chalk.yellow('[Rephic] Webpack mode:', webpackDevConfig.mode));
16+
console.log(chalk.yellow('[Rephic] Webpack is building...'));
1717

1818
let first = true;
1919

server/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const router = require('./router');
1010

1111
const app = new Koa();
1212

13-
console.log('process.env.NODE_ENV:', process.env.NODE_ENV);
13+
console.log('[Rephic] process.env.NODE_ENV ===', process.env.NODE_ENV);
1414

1515
// error handler
1616
onerror(app);

0 commit comments

Comments
 (0)