FileSizeReporter reports with wrong (hardcoded) path.
Created by: fezhengjin
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.0 -
npm -v
: 4.0.5
Then, specify:
- Operating system: macOS Sierra 10.12.4
- Browser and version: