简体   繁体   English

如何减小我的 vuejs web 应用程序的 app.js 大小?

[英]How can I reduce the app.js size of my vuejs web app?

I am having app.js size of 1.76 MB and web app takes so much time to response.I'm using laravel in backend.我的 app.js 大小为 1.76 MB,web 应用程序需要很长时间才能响应。我在后端使用 laravel。

Try minifying using uglify.js https://www.npmjs.com/package/uglify-js and make sure you have compression enabled尝试使用 uglify.js https://www.npmjs.com/package/uglify-js 缩小并确保您已启用压缩

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

相关问题 当我在项目中使用 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文件中使用车把模板吗 - Can I use a handlebars template in my app.js file 如何将lib中的js文件与主app.js捆绑在一起 - How can I bundle js files in my lib with main app.js 如何减少 Angular JS 应用程序的大小,其中 vendor.js 为 2MB,app.js 为 720KB? - How to reduce size for Angular JS app where vendor.js is 2MB and app.js is 720KB? vuejs app.js 导入路径可以是动态的还是在 if else 条件下? - Is vuejs app.js import path can be dynamic or in if else condition? 如何将我创建的文件导出到我的 app.js - How can I export the files that I created to my app.js 如何将道具从 App.js 传递到我的登录组件? - How can I pass in props from App.js to my login component? 如何访问 api 中的内容到我的 app.js 文件? - how can I access to something in api to my app.js file? 如何从同一选项卡中的 App.js 文件导航到我的 html 文件? - How can I navigate to my html file from App.js file in same tab? 如何将数据从 App.js 传递到组件? - How can I pass data from App.js to components?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM