Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit f37aa4e

Browse files
alexspencerickr
authored andcommitted
remove some console statements from build process.
1 parent 099c02a commit f37aa4e

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

scripts/build.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const config = require('../config/webpack.config.prod');
2222
const paths = require('../config/paths');
2323
const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
2424
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
25-
const printHostingInstructions = require('react-dev-utils/printHostingInstructions');
2625
const FileSizeReporter = require('react-dev-utils/FileSizeReporter');
2726

2827
const measureFileSizesBeforeBuild =
@@ -57,30 +56,13 @@ measureFileSizesBeforeBuild(paths.appBuild)
5756
chalk.underline(chalk.yellow('keywords'))
5857
} to learn more about each warning.`
5958
);
60-
console.log(
61-
`To ignore, add ${
62-
chalk.cyan('// eslint-disable-next-line')
63-
} to the line before.\n`
64-
);
6559
} else {
6660
console.log(chalk.green('Compiled successfully.\n'));
6761
}
6862

6963
console.log('File sizes after gzip:\n');
7064
printFileSizesAfterBuild(stats, previousFileSizes, paths.appBuild);
71-
console.log();
7265

73-
const appPackage = require(paths.appPackageJson);
74-
const publicUrl = paths.publicUrl;
75-
const publicPath = config.output.publicPath;
76-
const buildFolder = path.relative(process.cwd(), paths.appBuild);
77-
printHostingInstructions(
78-
appPackage,
79-
publicUrl,
80-
publicPath,
81-
buildFolder,
82-
useYarn
83-
);
8466
},
8567
(err) => {
8668
console.log(chalk.red('Failed to compile.\n'));

scripts/start.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ const createDevServerConfig = require('../config/webpackDevServer.config');
3333
const useYarn = fs.existsSync(paths.yarnLockFile);
3434
const isInteractive = process.stdout.isTTY;
3535

36-
// Warn and crash if required files are missing
37-
if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
38-
process.exit(1);
39-
}
40-
41-
// Tools like Cloud9 rely on this.
4236
const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;
4337
const HOST = process.env.HOST || '0.0.0.0';
4438

0 commit comments

Comments
 (0)