cacheBusting hash does not show when building for production

I’ve built my theme for production by running yarn run build:production, however, the HTML output in my theme does not contain the cacheBusting hash. Should this be automatically taken into account in the sage theme or do I have to manually add the hash after each build?

After digging a bit I realized where the problem may be coming from.

cacheBusting appears to be enabled when inProduction returns true:


  enabled: {
    sourceMaps: !isProduction,
    optimize: isProduction,
    cacheBusting: isProduction,
    watcher: !!,

However, after some testing, argv.env returns undefined in this line of config.js:

const isProduction = !!((argv.env && argv.env.production) || argv.p);

From where does argv retrieve the environmental variables?