I have a node js project with nx workspace and my problem is that my routes for download and upload is with path for example const filePath = path.join(__dirname, '../../templates', fileName)
. When I run
nx run build
nx combines all files into one single main.js file and thats ruin my paths and my app no longer finds template because its only one folder up not 2. What should I do to tell nx build to build my app like normal and not combining all my files into single file?
I have made a custom script: