فهرست منبع

ref: remove NODE_ENV

Sv443 1 سال پیش
والد
کامیت
9d6f7b5deb
2فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 4 4
      .env.template
  2. 1 1
      src/features/menu/menu_old.ts

+ 4 - 4
.env.template

@@ -1,7 +1,3 @@
-# "production" enables minification for small file size, on "development" the code stays readable and debuggable - default is development
-# when using the `build-prod` and `build-dev` scripts, this setting is overridden, so it only applies to `npm run build`
-NODE_ENV="development" # "production" or "development"
-
 # HTTP port of the dev server where the userscript will be served (when using `npm run watch`) - defaults to 8710 if empty
 DEV_SERVER_PORT=
 
@@ -10,3 +6,7 @@ RING_BELL=false
 
 # optional suffix to add just before the .user.js of the output file (for use with CI or build scripts to build the file as BetterYTM.min.user.js)
 # OUTFILE_SUFFIX=".min"
+
+# "production" enables minification for small file size, on "development" the code stays readable and debuggable - default is development
+# NOTE: this setting is only used when no `--env mode=xy` is passed to webpack
+# NODE_ENV="development"

+ 1 - 1
src/features/menu/menu_old.ts

@@ -8,7 +8,7 @@ import { addGlobalStyle, info, log } from "../../utils";
 
 /**
  * Adds an element to open the BetterYTM menu
- * @deprecated
+ * @deprecated TODO: replace in v1.1.0 - see https://github.com/Sv443/BetterYTM/issues/23
  */
 export async function addMenu() {
   // bg & menu