浏览代码

chore: build

Sv443 1 年之前
父节点
当前提交
92012cd34e
共有 2 个文件被更改,包括 4 次插入2984 次删除
  1. 3 2983
      dist/BetterYTM.user.js
  2. 1 1
      src/tools/post-build.ts

文件差异内容过多而无法显示
+ 3 - 2983
dist/BetterYTM.user.js


+ 1 - 1
src/tools/post-build.ts

@@ -91,7 +91,7 @@ type BuildStats = {
       }, 
     )
       // needs special treatment because the double quotes need to be replaced with backticks
-      .replace(/"(\/\*)?{{GLOBAL_STYLE}}(\*\/)?"/gm, `/* BetterYTM - global style */\n\`${globalStyle}\``);
+      .replace(/"(\/\*)?{{GLOBAL_STYLE}}(\*\/)?"/gm, `/* BetterYTM - global style */${mode === "development" ? "\n" : ""}\`${globalStyle}\``);
 
     if(mode === "production")
       userscript = remSourcemapComments(userscript);

部分文件因为文件数量过多而无法显示