当前位置:网站首页>UMI 3.0 template
UMI 3.0 template
2022-07-18 02:40:00 【Laugh when you are cheap ~】
umi4.0 Version already released 、, I do not know! 3.0 Have you started the version of . Here is umi 3.0 Basic version of the configuration file , You can adjust and use according to the basic version .
import { defineConfig } from 'umi';
const publicPath = '/';
export default defineConfig({
title: '3.0 Template ', // Configuration title
mfsu: {}, // Fast hot update ( at present bug More ,4.0 The version will have more optimizations )
ignoreMomentLocale: true, // Ignore moment Of locale file , Used to reduce size
hash: true, // file hash suffix , It is usually used for incremental publishing and avoiding browser loading cache .
externals: { // Which modules can not be packaged , adopt <script> Or other ways to introduce , It usually requires and scripts or headScripts Configure to use at the same time .
config: 'window.CONFIG',
},
headScripts: [{ src: `${publicPath}config.js` }], // To configure <head> Extra links in .
nodeModulesTransform: { // Set the compilation method of dependent files in the directory , There is no need to avoid compatibility issues
type: 'none',
},
dynamicImport: { // Enable on demand loading
loading: '@/components/Loading',
},
fastRefresh: {}, // Quick refresh , Component state can be maintained during development , At the same time, editors provide immediate feedback .
locale: { // International configuration
default: 'zh-CN', // default language
antd: true, // Turn on antd internationalization
baseNavigator: false, // Cancel browser language detection
},
targets: { // Configuration requires a minimum compatible browser version
android: 5,
ios: 7,
chrome: 58,
ie: 11,
},
lessLoader: { // To configure lessLoader
modifyVars: { // Introduce some less Variables and less mixins, Prevent packaging from missing prefix etc. less The problem of variables
hack: 'true; @import "[email protected]/styles/index.less";',
},
},
// Configure non root deployment
// base: publicPath
// publicPath,
// exportStatic: { dynamicRoot: true },
});边栏推荐
- CCF 202012-1 期末预测之安全指数
- Cache avalanche, cache breakdown, cache penetration
- 05 USART sending and receiving data (query mode)
- 2022-04-19 unity getting started 4 - important components and APIs
- 活动预告|Apache Doris x Apache SeaTunnel 联合 Meetup 开启报名!
- 阿里云物联网平台搭建
- 基于eTS高效开发HarmonyOS课程类应用
- 想要白嫖正则是吧?这一次给你个够!
- Use iceberg in CDP to pressurize the data Lake warehouse
- 2022-04-21 unity foundation 2 - important content of monobehavior
猜你喜欢

558. Intersection Quadtree: simple question récursive

基于eTS高效开发HarmonyOS课程类应用

龙蜥社区招募推广大使&体验官啦!| 人人都可以参与开源

05 USART sending and receiving data (query mode)

The end of kotlin plug-in and the rise of viewbinding

Google recommends using kotlin flow in MVVM architecture

Xpath实战之爬取学习猿地的猿著(下)

谷歌提出可靠性机器学习模型Plex:让大模型对分布外数据提出合适的预测结果

Use iceberg in CDP to pressurize the data Lake warehouse

一图看懂:国企数字化转型4个方向3个战略
随机推荐
Redis uses pipeline
2022-04-20 Unity入门9——其他
Bc20 at command test
03 按键控制LED
08 use timer to control LED flashing
07 printf重定向
Isolation level of MySQL
Meta宣布推出Make-A-Scene:可基于文字和草图控制AI图像生成
The difference between the elements dependencies and dependencymanagement
Svn download and Chinese package installation
pygame快速入门
Binary search (bottom)
MQTT---SUBSCRIBE和SUBACK
Kotlin 插件的落幕,ViewBinding 的崛起
One of MySQL artifact locks
Career masters help you with interview and job search + career development
IDEA Smart Checkout和Force Checkout区别
Dragon lizard community recruitment Promotion Ambassador & experience officer| Everyone can participate in open source
2022-04-21 Unity入门8——音效系统
MySql中IGNORE、ON DUPLICATE KEY UPDATE、DELAYED