Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
01eeb613
Commit
01eeb613
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Tweak npm start to make it clear it’s not optimized
Ref:
https://twitter.com/sprjrx/status/760481328886272004
parent
44b83132
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/start.js
+7
-1
scripts/start.js
with
7 additions
and
1 deletion
+7
-1
scripts/start.js
+
7
-
1
View file @
01eeb613
...
...
@@ -84,8 +84,14 @@ function setupCompiler(port) {
if
(
!
hasErrors
&&
!
hasWarnings
)
{
console
.
log
(
chalk
.
green
(
'
Compiled successfully!
'
));
console
.
log
();
console
.
log
(
'
The app is running at
http://localhost:
'
+
port
+
'
/
'
);
console
.
log
(
'
The app is running at
:
'
);
console
.
log
();
console
.
log
(
'
'
+
chalk
.
cyan
(
'
http://localhost:
'
+
port
+
'
/
'
));
console
.
log
();
console
.
log
(
'
Note that the development build is not optimized.
'
);
console
.
log
(
'
To create a production build, use
'
+
chalk
.
cyan
(
'
npm run build
'
)
+
'
.
'
);
console
.
log
();
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets