mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
12 lines
311 B
JavaScript
12 lines
311 B
JavaScript
const fs = require("fs");
|
|
const manifest = require("./src/manifest.json");
|
|
|
|
manifest.h5.publicPath = process.env.SERVER_ENV !== "NETLIFY" ? "/md/" : "/";
|
|
const result = JSON.stringify(manifest, null, 2);
|
|
|
|
fs.writeFile("./src/manifest.json", result, function (err) {
|
|
if (err) {
|
|
console.error(err);
|
|
}
|
|
});
|