mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
fix: publicPath
This commit is contained in:
parent
beb3a6fb74
commit
070902093a
@ -7,8 +7,7 @@ function writeManifestJson() {
|
||||
const strData = data.toString();
|
||||
const manifest = JSON.parse(strData);
|
||||
|
||||
manifest.h5.publicPath =
|
||||
process.env.SERVER_ENV !== "NETLIFY" ? "/md/" : "/";
|
||||
manifest.h5.publicPath = process.env.SERVER_ENV !== "NETLIFY" ? "/md/" : "/";
|
||||
const result = JSON.stringify(manifest, null, 2);
|
||||
|
||||
fs.writeFile("./src/manifest.json", result, function (err) {
|
||||
@ -18,4 +17,3 @@ function writeManifestJson() {
|
||||
});
|
||||
});
|
||||
}
|
||||
writeManifestJson();
|
||||
|
Loading…
Reference in New Issue
Block a user