浏览代码

fix: tie branch var to dbg var

Sv443 1 年之前
父节点
当前提交
73fd9edcb5
共有 3 个文件被更改,包括 9 次插入12 次删除
  1. 0 0
      BetterYTM.user.js
  2. 1 3
      src/BetterYTM.user.ts
  3. 8 9
      webpack.config.js

文件差异内容过多而无法显示
+ 0 - 0
BetterYTM.user.js


+ 1 - 3
src/BetterYTM.user.ts

@@ -3,9 +3,7 @@ import type { Domain, FeatureConfig } from "./types";
 (async () => {
   /** Set to true to enable debug mode for more output in the JS console */
   const dbg = true;
-
-  // const branch = "main";
-  const branch = "develop"; // #DEBUG
+  const branch = dbg ? "develop" : "main";
 
   /** Contains all possible features with their default values and other config */
   const featInfo = {

+ 8 - 9
webpack.config.js

@@ -1,6 +1,5 @@
 const path = require("path");
 const { exec } = require("child_process");
-const package = require("./package.json");
 
 module.exports = {
   entry: "./src/BetterYTM.user.ts",
@@ -15,14 +14,14 @@ module.exports = {
       test: /\.html$/i,
       loader: "html-loader",
     },
-    {
-      test: /\.s[ac]ss$/i,
-      use: [
-        "style-loader",
-        "css-loader",
-        "sass-loader",
-      ],
-    },
+    // {
+    //   test: /\.s[ac]ss$/i,
+    //   use: [
+    //     "style-loader",
+    //     "css-loader",
+    //     "sass-loader",
+    //   ],
+    // },
     ],
   },
   plugins: [{

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