diff --git a/build.js b/build.js index ed58e4a..57b10cf 100644 --- a/build.js +++ b/build.js @@ -8,7 +8,9 @@ const entryFiles = Path.join(__dirname, "./index.html"); const options = { outDir: "./dist", outFile: "index.html", - publicUrl: "/tghandbook" + process.env.SUBPATH + "/dist", + publicUrl: process.env.SUBPATH + ? "/tghandbook" + process.env.SUBPATH + "/dist" + : "/", watch: false, contentHash: false, scopeHoist: false,