This commit is contained in:
caoyuchun 2025-06-12 17:08:52 +08:00
parent 41075b4af0
commit 1f9171fed4
3 changed files with 11 additions and 9 deletions

View File

@ -1,7 +1,8 @@
# NODE_ENV=sub
# VUE_APP_BASE_URL=/reading_1/
VUE_APP_BASE_URL=/reading/
BUILD_DIR = "aoxiang"
#BUILD_DIR = "aoxiang"
BUILD_DIR = "reading"
# VUE_APP_BASE_URL=/dist/
# VUE_APP_NAME=caoyuchun
# VUE_APP_EMAIL=caoyuchun2003@qq.com

View File

@ -1,11 +1,11 @@
npm run build
# npm run build
npm run build-sub
rm dist.zip
rm aoxiang.zip
# rm reading.zip
rm reading.zip
zip -r dist.zip dist/
zip -r aoxiang.zip aoxiang
# zip -r reading.zip reading/
zip -r reading.zip reading

View File

@ -9,14 +9,15 @@ var targetServer = "https://xinsiketang.com"
if(process.env.NODE_ENV === 'prod'){
targetServer = "https://xinsiketang.com"
}else{
targetServer = "https://local.xinsiketang.com"
targetServer = "https://dev.xinsiketang.com"
}
// targetServer = "https://xinsiketang.com"
console.log("targetServer",targetServer)
module.exports = {
lintOnSave: false,
publicPath: './', // 设置公共路径为相对路径
// publicPath: './', // 设置公共路径为相对路径
publicPath: "https://smile-ebook-online.xinsiketang.com/reading/",
outputDir:process.env.BUILD_DIR? process.env.BUILD_DIR :"dist",
devServer: {
// headers: {