netlify
This commit is contained in:
parent
dc1344e67c
commit
32debae48d
|
|
@ -0,0 +1,13 @@
|
||||||
|
# 构建预览页面
|
||||||
|
|
||||||
|
# 指定构建模式
|
||||||
|
NODE_ENV=production
|
||||||
|
|
||||||
|
# 标记当前构建方式
|
||||||
|
VUE_APP_BUILD_MODE=PREVIEW
|
||||||
|
|
||||||
|
# 显示源码按钮
|
||||||
|
VUE_APP_SCOURCE_LINK=TRUE
|
||||||
|
|
||||||
|
# 部署路径
|
||||||
|
VUE_APP_PUBLIC_PATH=/
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
"build:nomock": "vue-cli-service build --mode nomock",
|
"build:nomock": "vue-cli-service build --mode nomock",
|
||||||
"build:preview": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service build --mode preview",
|
"build:preview": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service build --mode preview",
|
||||||
"build:github": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service build --mode github",
|
"build:github": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service build --mode github",
|
||||||
|
"build:netlify": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service build --mode netlify",
|
||||||
"dev": "npm run serve",
|
"dev": "npm run serve",
|
||||||
"i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'",
|
"i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'",
|
||||||
"start": "npm run serve",
|
"start": "npm run serve",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue