Browse Source

chore: build

Sv443 1 năm trước cách đây
mục cha
commit
e4b9c537e4
2 tập tin đã thay đổi với 4 bổ sung2984 xóa
  1. 3 2983
      dist/BetterYTM.user.js
  2. 1 1
      src/tools/post-build.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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
       // 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")
     if(mode === "production")
       userscript = remSourcemapComments(userscript);
       userscript = remSourcemapComments(userscript);

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác