ms-vite-plugin 1.4.22 → 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.
package/dist/build.js CHANGED
@@ -202,6 +202,8 @@ const buildAll = async (isDev = true, workspacePath) => {
202
202
  emptyOutDir: false, // 不要每次清空输出目录
203
203
  sourcemap: isDev,
204
204
  minify: !isDev, // 开发环境不压缩变量名
205
+ // 目标 JSC 最低兼容 iOS 15,钉死语法降级基线(不超纲到 iOS 15 不支持的语法)
206
+ target: "safari15",
205
207
  },
206
208
  plugins: [
207
209
  (0, stopGuardPlugin_1.createStopGuardPlugin)(),
@@ -211,7 +213,14 @@ const buildAll = async (isDev = true, workspacePath) => {
211
213
  (0, vite_plugin_bundle_obfuscator_1.default)({
212
214
  autoExcludeNodeModules: true,
213
215
  threadPool: true,
214
- options: obfuscatorConfig,
216
+ options: {
217
+ ...obfuscatorConfig,
218
+ target: "browser",
219
+ debugProtection: false,
220
+ disableConsoleOutput: false,
221
+ domainLock: [],
222
+ selfDefending: false,
223
+ },
215
224
  }),
216
225
  ]),
217
226
  ],
@@ -254,6 +263,13 @@ const buildAll = async (isDev = true, workspacePath) => {
254
263
  // 打包完成后执行
255
264
  await fsExtra.copy(path.join(workspacePath, "res"), path.join(outPath, "res"));
256
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
+ }
257
273
  const distPath = path.join(workspacePath, "dist");
258
274
  const src = path.join(workspacePath, "package.json");
259
275
  const dest = path.join(outPath, "package.json");
@@ -770,10 +770,10 @@ GET /mirror/image
770
770
 
771
771
  ### 请求参数
772
772
 
773
- | 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
774
- | ------- | ----- | ------- | ---- | ------ | ------------ |
775
- | fps | query | integer | | | 帧率 |
776
- | quality | query | number | | | 质量 0.1-1.0 |
773
+ | 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
774
+ | ------------- | ----- | ------- | ---- | ------ | ---------------------------- |
775
+ | fps | query | integer | | | 帧率,默认 10,范围 1-30 |
776
+ | quality | query | number | | | 质量,默认 0.25,范围 0.1-1.0 |
777
777
 
778
778
  > 返回示例
779
779
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "1.4.22",
3
+ "version": "1.4.25",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {