duanduo7400 2017-03-30 10:19
浏览 34

缩小Html,Js,Css和Php

Im looking for the better way to minify those files but im still noob , currently im working with atom editor so im using a plugin called atom-minify whichs minify my css and js but not the html , after this i have to compress the proyecto to upload to the server or it is not necesary ?

  • 写回答

1条回答 默认 最新

  • doulin4844 2017-03-30 11:52
    关注

    Probably best is to use Gulp/ Grunt for such a thing. Here is how to set it up Grunt.

    And then use plugin such as Grunt-minified to do your minifications(not sure if minifications is a real word but... :D).

    In any case, its better if you use Grunt/ Gulp in your projects as they help you with:

    1) Work in as small chunks of CSS and JavaScript as makes sense to you, then concatenate them together for the production website.

    2) Compress your CSS and minify your JavaScript to make their file sizes as small as possible for your production website.

    3) Optimize your images to reduce their file size without affecting quality.

    4) Use Sass for CSS authoring because of all the useful abstraction it allows.

    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测