mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-02 09:01:07 +08:00
Correct a comment mistype in webpack production config (#855)
This commit is contained in:
committed by
Dan Abramov
parent
15c20f1729
commit
5c3ab84fdf
@@ -42,7 +42,7 @@ var homepagePathname = homepagePath ? url.parse(homepagePath).pathname : '/';
|
||||
var publicPath = ensureSlash(homepagePathname, true);
|
||||
// `publicUrl` is just like `publicPath`, but we will provide it to our app
|
||||
// as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.
|
||||
// Omit trailing shlash as %PUBLIC_PATH%/xyz looks better than %PUBLIC_PATH%xyz.
|
||||
// Omit trailing slash as %PUBLIC_PATH%/xyz looks better than %PUBLIC_PATH%xyz.
|
||||
var publicUrl = ensureSlash(homepagePathname, false);
|
||||
// Get environment variables to inject into our app.
|
||||
var env = getClientEnvironment(publicUrl);
|
||||
|
||||
Reference in New Issue
Block a user