Skip to content

Commit 6a1837f

Browse files
committed
refactor: optimization code structure for vue
1 parent 5f873c0 commit 6a1837f

187 files changed

Lines changed: 27116 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

blog-admin-web/.env.development

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# just a flag,本地开发环境
2+
ENV = 'development'
3+
4+
# 配置文件的内容以键值对的形式,必须以"VUE_APP_"开头
5+
6+
# 项目使用的端口
7+
VUE_APP_PORT = 8000
8+
9+
# 后端的接口域
10+
VUE_APP_BACKEND_API = 'http://localhost:8100'

blog-admin-web/.env.production

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# just a flag,生产环境
2+
ENV = 'production'
3+
4+
# 配置文件的内容以键值对的形式,必须以"VUE_APP_"开头
5+
6+
# 项目使用的端口
7+
VUE_APP_PORT = 8000
8+
9+
# 后端的接口域
10+
# 注意:这里需要在nginx上配置
11+
VUE_APP_BACKEND_API = 'https://blog.hackyle.com/admin-api'
12+

blog-admin-web/.env.test

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# just a flag,测试环境
2+
ENV = 'test'
3+
4+
# 配置文件的内容以键值对的形式,必须以"VUE_APP_"开头
5+
# 测试环境如何打包:将以下内容复制到.env.production,执行"npm run build",完成打包后将.env.production改回来
6+
7+
# 项目使用的端口
8+
VUE_APP_PORT = 8000
9+
10+
# 后端的接口域
11+
# 注意:这里需要在nginx上配置
12+
VUE_APP_BACKEND_API = 'http://localhost:8100'
13+

blog-admin-web/babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

0 commit comments

Comments
 (0)