Enable builds without prefix
This commit is contained in:
parent
31b68e89fc
commit
2b0608065b
1 changed files with 3 additions and 1 deletions
4
build.js
4
build.js
|
@ -8,7 +8,9 @@ const entryFiles = Path.join(__dirname, "./index.html");
|
||||||
const options = {
|
const options = {
|
||||||
outDir: "./dist",
|
outDir: "./dist",
|
||||||
outFile: "index.html",
|
outFile: "index.html",
|
||||||
publicUrl: "/tghandbook" + process.env.SUBPATH + "/dist",
|
publicUrl: process.env.SUBPATH
|
||||||
|
? "/tghandbook" + process.env.SUBPATH + "/dist"
|
||||||
|
: "/",
|
||||||
watch: false,
|
watch: false,
|
||||||
contentHash: false,
|
contentHash: false,
|
||||||
scopeHoist: false,
|
scopeHoist: false,
|
||||||
|
|
Reference in a new issue