简体   繁体   English

使用 laravel-mix 在 vue 中使用动态导入的组件是否安全

[英]Is it safe to use dynamic-imported components in vue with laravel-mix

I tried dynamic importing of vue components to increase performance of my app by loading components async and only when needed, as yu can see in the links bellow I had lots of problems with trying to get this to work, so I decided to ditch the idea, now I'm wondering if thave there been any news about this?我尝试动态导入 vue 组件,以通过异步加载组件来提高我的应用程序的性能,并且仅在需要时加载,正如您在下面的链接中看到的那样,我在尝试让它工作时遇到了很多问题,所以我决定放弃这个想法,现在我想知道是否有任何关于此的消息?

https://laracasts.com/discuss/channels/elixir/laravel-mix-dynamic-imports https://laracasts.com/discuss/channels/elixir/laravel-mix-dynamic-imports

https://laravel-mix.com/docs/5.0/upgrade https://laravel-mix.com/docs/5.0/upgrade

laravel and vue are used a lot so it's rare to see such a crazy bug hasn't been fixed yet. laravel 和 vue 被大量使用,所以很少看到如此疯狂的错误尚未修复。

Yes you can use it with laravel mix this bug was before v4 and they fixed it and every thing is working as a charm是的,您可以将它与 laravel 混合使用,这个错误是 v4 之前的错误,他们修复了它,每件事都像魅力一样工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM