What is the role of src and dist folders?(src 和 dist 文件夹的作用是什么?)
问题描述
我正在查看 jquery 插件的 git repo.我想在我自己的项目中进行一些更改,但是当我打开存储库时,它具有我以前从未见过的结构.我不确定要使用/复制到我自己的项目中的文件.
I'm looking at a git repo for a jquery plugin. I want to make a few changes for use in my own project, but when I opened up the repo it had a structure I've never seen before. I'm not sure which files to use / copy into my own project.
有一个dist"和一个src"文件夹.这些有什么作用?这是特定于 gruntjs 还是 jquery 插件的东西?
There is a "dist" and a "src" folder. What purpose do these serve? Is this something specific for gruntjs or maybe jquery plugins?
我很好奇的 git repo:https://github.com/ducksboard/gridster.js
The git repo I'm curious about: https://github.com/ducksboard/gridster.js
推荐答案
src/
代表source,是之前的raw code缩小或连接或其他一些编译 - 用于读取/编辑代码.
src/
stands for source, and is the raw code before minification or concatenation or some other compilation - used to read/edit the code.
dist/
代表 distribution,是 minified/concatenated 版本 - 实际用于生产站点.
dist/
stands for distribution, and is the minified/concatenated version - actually used on production sites.
这是为网络上的资产完成的一项常见任务,以使其更小.
This is a common task that is done for assets on the web to make them smaller.
您可以在此处查看示例:http://blog.kevinchisholm.com/javascript/node-js/javascript-concatenation-and-minification-with-the-grunt-js-task-runer/
You can see an example here: http://blog.kevinchisholm.com/javascript/node-js/javascript-concatenation-and-minification-with-the-grunt-js-task-runer/
这篇关于src 和 dist 文件夹的作用是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:src 和 dist 文件夹的作用是什么?


基础教程推荐
- 角度Apollo设置WatchQuery结果为可用变量 2022-01-01
- Karma-Jasmine:如何正确监视 Modal? 2022-01-01
- 当用户滚动离开时如何暂停 youtube 嵌入 2022-01-01
- 在for循环中使用setTimeout 2022-01-01
- 响应更改 div 大小保持纵横比 2022-01-01
- 在 JS 中获取客户端时区(不是 GMT 偏移量) 2022-01-01
- 有没有办法使用OpenLayers更改OpenStreetMap中某些要素 2022-09-06
- 动态更新多个选择框 2022-01-01
- 悬停时滑动输入并停留几秒钟 2022-01-01
- 我什么时候应该在导入时使用方括号 2022-01-01