Comments (2)
这个应该是判断打包环境决定组件是否采用懒加载的方式,假如是production,则懒加载,假如是dev,则不采用懒加载。因为懒加载时热更新比较慢,改代码后看效果等待太久,作者在自己的文章中也说了这个。
from vue-admin-template.
恩是的,不过下一个大版本会用babel来处理不用人为手动处理了。而且之后升级webpack4.0可能也不会有慢的问题,这个之后再观察。
一般项目其实不用考虑这么多,当你的项目真的很大,页面真的很多的时候才需要考虑。就比如我的一个后台项目页面大于150的时候才明显的出现了热更新慢的问题,所以你可能都不需要这行代码。
from vue-admin-template.
Related Issues (20)
- 基础模板已经不更新了,大家可以试试我这个针对原版简化的 HOT 3
- PHP 语言可以使用这个? HOT 1
- 请问登录表单当输入账号和密码后在开发者模式下network payload中居然显示明文的账号和密码该怎么解决,谢谢 HOT 2
- 通过webpack发布后在浏览器开发者模式的sources下域名目录下static/js/app.js下会显示源码
- methods调用后端方法无法正常传递值给data
- 也是npm安装依赖的问题 HOT 1
- opensslErrorStack问题,node版本太高 HOT 2
- vue upgrade更新vue cli报错 HOT 6
- npm run dev 报错求解 [email protected] dev | vue-cli-service serve | Node.js v18.15.0 HOT 2
- npm ERR! Failed at the [email protected] dev script.
- 项目中vue2.0能升级为vue3.0吗 HOT 2
- 遇到npm安装依赖的问题,看过来 HOT 1
- 在router/index.js 中引入 api文件下接口,request为null HOT 1
- npm run dev失败 HOT 1
- npm run build打包后的index.heml的script 类型错误
- core 跨域问题
- 退出登录报404 HOT 2
- npm 安装出错,请问下node 版本是多少 HOT 1
- 有人提供vue2.7的依赖吗,把node-sass换成dart-sass
- 迁移至vue3+element-plus
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-admin-template.