Files
unifi-voucher-site/app/modules/Assets.js
2021-01-16 09:45:22 +01:00

19 lines
315 B
JavaScript

/**
* Import vendor modules
*/
const fs = require("fs");
/**
* Define public path
*/
const path = `${__dirname}/../../public/dist`;
/**
* Return the manifest
*
* @return {any}
*/
module.exports = () => {
return JSON.parse(fs.existsSync(path) ? fs.readFileSync(`${path}/rev-manifest.json`) : "{}");
};