Sfoglia il codice sorgente

add define

add ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION var
陈帅 6 anni fa
parent
commit
b4392ccd68
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      config/config.ts

+ 4 - 0
config/config.ts

@@ -100,6 +100,10 @@ export default {
   theme: {
     'primary-color': primaryColor,
   },
+  define: {
+    ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION:
+      ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION || '', // preview.pro.ant.design only do not use in your production ; preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
+  },
   ignoreMomentLocale: true,
   lessLoaderOptions: {
     javascriptEnabled: true,