How to get command line argument parameters in react?
I have a react code, built on Webpack. When I ran –
npm run build -- --configuration=dev
or
npm run build -- --configuration=qa
Based on that, I wanted to get the configuration parameters as DEV or QA – builds the web packs.
The problem here – How to get the npm params configuration, in the javascript?