mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-03-31 06:24:00 -04:00
19 lines
315 B
JavaScript
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`) : "{}");
|
|
};
|