Closed
Description
Can you reproduce the problem with latest npm?
yes
Description
When i changed the value of appBuild
property to dist
in "react-scripts/config/paths.js" and run npm run build
, the printFileSizesAfterBuild
function logged wrong paths.
Expected behavior
Log in the console should be like:
File sizes after gzip:
16.13 KB dist/static/js/main.3a5b25c4.js
5.72 KB dist/static/css/main.dc21d15c.css
Actual behavior
But it still reported with "build" in paths:
File sizes after gzip:
16.13 KB build/static/js/main.3a5b25c4.js
5.72 KB build/static/css/main.dc21d15c.css
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):node -v
: v7.4.0npm -v
: 4.0.5
Then, specify:
- Operating system: macOS Sierra 10.12.4
- Browser and version:
Activity
gaearon commentedon May 25, 2017
Good catch. Want to send a PR that passes appBuild folder into that function?
fezhengjin commentedon May 25, 2017
@gaearon It's my pleasure.
noseglid commentedon May 30, 2017
This never made it into the documentation, which still incorrectly states
when in fact it should be
or this happens
gaearon commentedon May 30, 2017
Good point. Want to send a PR?
gaearon commentedon May 30, 2017
Reopened for docs.
printFileSizesAfterBuild
#29421 remaining item