We rename our assets directory on every single git push to handle browser caching issues. This mean that we store a random variable in a config.json file in our project.
I'm trying to move from gulp to npm as a build process, and therefore need to access this stored variable somehow from within the package.json file.
How would I go about such a task, and is it even possible?
"scripts": {
"build-offers": "uglifyjs src/pages/offers/*.js -mc > [HERE I NEED TO PREFIX THE OUTPUT FOLDER USING THE config.json FILE CONTENT] assets/offers.js",
"offers": "npm run build-offers"
},