简体   繁体   English

当我在项目中使用 laravel、vuejs 和 vuetify 并使用 treeshaking 概念时,如何减小 app.js 文件大小?

[英]how can i reduced app.js file size when i use laravel ,vuejs and vuetify in my project and i use treeshaking concept?

app.js import vuetify module. app.js 导入 vuetify 模块。

import Vuetify, {
    VApp,
    VContent,
    VListGroup,
    VListItem,
    VListItemAction,
    VListItemActionText,
    VListItemAvatar,
    VListItemContent,
    VListItemGroup,
    VListItemIcon,
    VListItemSubtitle,
    VListItemTitle,
    VFooter,
    VForm,
    VChip,
    VMenu
} from 'vuetify/lib'

Treeshaking helps.摇树有帮助。 You may also use the Vendor Extraction feature of Laravel Mix .您还可以使用Laravel Mix供应商提取功能。

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

相关问题 我可以在我的app.js文件中使用车把模板吗 - Can I use a handlebars template in my app.js file 如何减小我的 vuejs web 应用程序的 app.js 大小? - How can I reduce the app.js size of my vuejs web app? AngularJS:创建可在我的app.js文件中使用的类以使用超链接图片 - AngularJS: Creating a class that I can use in my app.js file to use hyperlink pictures 我可以在 _app.js 和页面中使用 getInitialProps 吗? - Can I use getInitialProps in _app.js and in pages? 我如何在我的 vuejs 项目中使用 v-for 循环 - how can i use v-for loop in my vuejs project Nodejs 如何添加另一个主 app.js 并使用它们来使我的代码干净? - Nodejs how can I add another main app.js and use both of them to make my code clean? 如何从同一选项卡中的 App.js 文件导航到我的 html 文件? - How can I navigate to my html file from App.js file in same tab? 如何在不需要重新加载页面的 app.js 页面上使用 PHP POST 变量? - How can I use PHP POST Variables on an app.js page that does not require reloading the page? 我如何使用外部路由.js所以我不必在app.js中定义我的路由? - How do I use external routes.js so I don't have to define my routes in app.js? 如何访问 api 中的内容到我的 app.js 文件? - how can I access to something in api to my app.js file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM