简体   繁体   English

用于缩小 CDD 和 JS 文件的工具

[英]Tools to minify CDD and JS files

I deployed my application, I find that the loading time is much .. there isa way to compress css and js files ?我部署了我的应用程序,我发现加载时间很长..有一种方法可以压缩 css 和 js 文件吗? , knowing that I use in each page that the necessary and sometimes js version minified .. thank you ,知道我在每个页面中都使用了必要的,有时是 js 版本的缩小版..谢谢

In my experience with compressing JS files, use UglifyJS , and CSS files I prefer using Compass with Sass , which not only can minify CSS files, but also support the superior (personal opinion) SCSS-syntax.根据我压缩 JS 文件的经验,使用UglifyJS和 CSS 文件,我更喜欢使用Compass 和 Sass ,它不仅可以缩小 CSS 文件,而且还支持高级(个人意见)SCSS 语法。

Both engines work well along with GruntJS , which is a NPM module and a tool to perform various tasks.这两个引擎都与GruntJS配合得很好, GruntJS是一个NPM 模块和执行各种任务的工具。 I use the following plugins with Grunt:我在 Grunt 中使用以下插件:

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

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