This repository was archived by the owner on Jun 10, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ const config = require('../config/webpack.config.prod');
2222const paths = require ( '../config/paths' ) ;
2323const checkRequiredFiles = require ( 'react-dev-utils/checkRequiredFiles' ) ;
2424const formatWebpackMessages = require ( 'react-dev-utils/formatWebpackMessages' ) ;
25- const printHostingInstructions = require ( 'react-dev-utils/printHostingInstructions' ) ;
2625const FileSizeReporter = require ( 'react-dev-utils/FileSizeReporter' ) ;
2726
2827const 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' ) ) ;
Original file line number Diff line number Diff line change @@ -33,12 +33,6 @@ const createDevServerConfig = require('../config/webpackDevServer.config');
3333const useYarn = fs . existsSync ( paths . yarnLockFile ) ;
3434const 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.
4236const DEFAULT_PORT = parseInt ( process . env . PORT , 10 ) || 3000 ;
4337const HOST = process . env . HOST || '0.0.0.0' ;
4438
You can’t perform that action at this time.
0 commit comments