vue3-admin-gpt 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue3-admin-gpt",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A Vue3 admin template with Element Plus and Rspack",
5
5
  "author": "pxq555",
6
6
  "license": "MIT",
Binary file
package/public/index.html CHANGED
@@ -6,6 +6,7 @@
6
6
  <meta content="width=device-width,initial-scale=1.0" name="viewport" />
7
7
  <meta content="<%= VUE_APP_TITLE %>" name="keywords" />
8
8
  <meta content="<%= VUE_APP_AUTHOR %>" name="author" />
9
+ <link rel="icon" type="image/x-icon" href="/favicon.png" />
9
10
  </head>
10
11
  <body>
11
12
  <noscript>
package/rspack.config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const path = require("path");
2
2
  const fs = require("fs");
3
3
  const dotenv = require("dotenv");
4
- const { Configuration, DefinePlugin } = require("@rspack/core");
4
+ const { Configuration, DefinePlugin, rspack } = require("@rspack/core");
5
5
  const HtmlRspackPlugin = require("html-rspack-plugin");
6
6
  const { VueLoaderPlugin } = require("vue-loader");
7
7
  const {
@@ -201,6 +201,18 @@ module.exports = {
201
201
  }
202
202
  : false,
203
203
  }),
204
+ // 复制 public 目录下的静态资源到 dist 目录(排除 index.html)
205
+ new rspack.CopyRspackPlugin({
206
+ patterns: [
207
+ {
208
+ from: "public",
209
+ to: "",
210
+ globOptions: {
211
+ ignore: ["**/index.html"],
212
+ },
213
+ },
214
+ ],
215
+ }),
204
216
  ],
205
217
  optimization: {
206
218
  splitChunks: {