Here is my script file ``` try { var UACODE = '1234567'; var replaceinfiles = require('replaceinfiles'); var options = { source: '../build/index.html', destPattern: '../build/index.html', replaceMap: { "[UACODE]": UACODE } }; replaceinfiles(options) .then(function (report) { console.log(report); }) .catch(function (error) { console.log(error); }); } catch (e){ console.log(e); } ``` This is the file structure ``` scripts ├── analytics-replace.js build ├── index.html ``` I run it with `node scripts/analytics-replace.js` The task never ends. Is there something wrong with my code ?
Here is my script file
This is the file structure
I run it with
node scripts/analytics-replace.jsThe task never ends. Is there something wrong with my code ?