Skip to content

Commit

Permalink
build: Add vite-plugin-html plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Feb 19, 2022
1 parent 7411dbc commit d5b6e2a
Show file tree
Hide file tree
Showing 13 changed files with 315 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .env.base
Expand Up @@ -6,3 +6,6 @@ VITE_API_BASEPATH = base

# 打包路径
VITE_BASE_PATH = /

# 标题
VITE_APP_TITLE = ElementAdmin
3 changes: 3 additions & 0 deletions .env.dev
Expand Up @@ -18,3 +18,6 @@ VITE_SOURCEMAP = true

# 输出路径
VITE_OUT_DIR = dist-dev

# 标题
VITE_APP_TITLE = ElementAdmin
3 changes: 3 additions & 0 deletions .env.pro
Expand Up @@ -18,3 +18,6 @@ VITE_SOURCEMAP = false

# 输出路径
VITE_OUT_DIR = dist-pro

# 标题
VITE_APP_TITLE = ElementAdmin
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<title><%= title %></title>
</head>
<body>
<div id="app">
Expand Down Expand Up @@ -128,7 +128,7 @@
<div class="app-loading-wrap">
<div class="app-loading-title">
<img src="/logo.png" class="app-loading-logo" alt="Logo" />
<div class="app-loading-title">element-plus-admin</div>
<div class="app-loading-title"><%= title %></div>
</div>
<div class="app-loading-item">
<div class="app-loading-outter"></div>
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -91,6 +91,7 @@
"unplugin-vue-define-options": "^0.3.1",
"vite": "2.8.3",
"vite-plugin-eslint": "^1.3.0",
"vite-plugin-html": "^3.0.6",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-purge-icons": "^0.7.0",
"vite-plugin-style-import": "1.4.1",
Expand Down

0 comments on commit d5b6e2a

Please sign in to comment.