ms-vite-plugin 1.4.24 → 1.4.25

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.
Files changed (2) hide show
  1. package/dist/build.js +7 -0
  2. package/package.json +1 -1
package/dist/build.js CHANGED
@@ -263,6 +263,13 @@ const buildAll = async (isDev = true, workspacePath) => {
263
263
  // 打包完成后执行
264
264
  await fsExtra.copy(path.join(workspacePath, "res"), path.join(outPath, "res"));
265
265
  await fsExtra.copy(path.join(workspacePath, "ui"), path.join(outPath, "ui"));
266
+ // 如果项目根目录下存在 logo.jpg 或 logo.png,也复制到 outPath
267
+ for (const logoName of ["logo.jpg", "logo.png"]) {
268
+ const logoSrc = path.join(workspacePath, logoName);
269
+ if (await fsExtra.pathExists(logoSrc)) {
270
+ await fsExtra.copy(logoSrc, path.join(outPath, logoName));
271
+ }
272
+ }
266
273
  const distPath = path.join(workspacePath, "dist");
267
274
  const src = path.join(workspacePath, "package.json");
268
275
  const dest = path.join(outPath, "package.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "1.4.24",
3
+ "version": "1.4.25",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {