Is there a way to parse the environment.ts file from a .js file?
export const environment = {
...,
production: false,
...
};
something like
beforePrepare.js
module.exports = function (ctx) {
let environmet = TOOL.parse(src/environments/environment.ts);
console.log(environment); --> PRINT {..., production: false, ...}
}
Could a regex also do the work?
I need this to implement a cordova hook