LOCKING盒子版
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

41 rinda
860 B

  1. import { defineConfig } from 'umi';
  2. const isBuildingElectron = process.env.BUILD_TYPE === 'electron';
  3. export default defineConfig({
  4. nodeModulesTransform: {
  5. type: 'none',
  6. },
  7. history: {
  8. type: 'hash',
  9. },
  10. // routes: [
  11. // { path: '/', component: '@/pages/index' },
  12. // ],
  13. fastRefresh: {},
  14. publicPath: './',
  15. theme: {
  16. 'primary-color': '#7850FF',
  17. 'app-header-height': '48px',
  18. },
  19. chainWebpack(config) {
  20. if (isBuildingElectron) {
  21. config.target('electron-renderer');
  22. }
  23. },
  24. proxy: {
  25. '/api': {
  26. target: 'http://139.198.180.242:9003',
  27. // target: 'http://www.lockingos.org:9003',
  28. //target: 'http://192.168.8.114:8082',
  29. changeOrigin: true,
  30. secure: false,
  31. },
  32. },
  33. define: {
  34. 'global.URL_PREFIX': isBuildingElectron
  35. ? 'http://139.198.180.242:9003/'
  36. : '',
  37. },
  38. });