I was noticing that yarn build -- report or yarn build -- --report doesn't work. I'm wondering if there is a way to make that work with yarn. I've searched around but have not found much documentation on this argument process.env feature of NPM either.
Yeah, sadly it seems like yarn doesn't support environment from cli at this moment
However you can do something like this
"scripts": {
"build:report": "cross-env npm_config_report=true node build/build.js"
yarn build:report
If you meet cross-env command not found, just run yarn add -D cross-env.
Most helpful comment
Yeah, sadly it seems like yarn doesn't support environment from cli at this moment
However you can do something like this