cyc
This commit is contained in:
parent
41075b4af0
commit
1f9171fed4
3
.env.sub
3
.env.sub
@ -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
|
||||
|
||||
10
build.sh
10
build.sh
@ -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
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user