build config

master
zhengpengju 4 years ago
parent a284b05ab9
commit 15d1c43200

@ -1,3 +1,4 @@
HOST=0.0.0.0
BABEL_CACHE=none
#DEBUG=umiui*
#DEBUG=umiui*
#ANALYZE=1

@ -386,8 +386,10 @@ export default defineConfig({
title: false,
ignoreMomentLocale: true,
proxy: proxy[REACT_APP_ENV || 'dev'],
base: '/',
publicPath: './', // 发布路径采用相对地址
manifest: {
basePath: '/',
basePath: './',
},
// Fast Refresh 热更新
fastRefresh: {},

@ -5,7 +5,7 @@
"description": "An out-of-box UI solution for enterprise applications",
"scripts": {
"analyze": "cross-env ANALYZE=1 umi build",
"build": "umi build",
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider umi build",
"deploy": "npm run build && npm run gh-pages",
"dev": "npm run start:dev",
"gh-pages": "gh-pages -d dist",

@ -243,8 +243,10 @@ export default defineConfig({
title: false,
ignoreMomentLocale: true,
proxy: proxy[REACT_APP_ENV || 'dev'],
base: '/',
publicPath: './', // 发布路径采用相对地址
manifest: {
basePath: '/',
basePath: './',
},
// Fast Refresh 热更新
fastRefresh: {},

@ -5,7 +5,7 @@
"description": "An out-of-box UI solution for enterprise applications",
"scripts": {
"analyze": "cross-env ANALYZE=1 umi build",
"build": "umi build",
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider umi build",
"deploy": "npm run build && npm run gh-pages",
"dev": "npm run start:dev",
"gh-pages": "gh-pages -d dist",

Loading…
Cancel
Save