Permalink
Browse files

Added documentation for the weight field.

  • Loading branch information...
1 parent 138f48d commit 4d3041efe69449b2573b058f13cc5dc756fe1c11 @johmanx10 johmanx10 committed Jul 24, 2012
Showing with 22 additions and 0 deletions.
  1. +22 −0 doc/square.json.md
View
@@ -67,6 +67,28 @@ documentation.
### The extract field
### The dependencies field
### The weight field
+
+The weight field is used to determine the order in which files you specified in
+square.json will be added to your final file. The higher the weight, the
+earlier on your file will be read, processed and implemented.
+
+```js
+{
+ "bundle": {
+ "jquery.js": {
+ "description": "jQuery JavaScript Library."
+ , "weight": 2
+ }
+ , "development.js": {
+ "description": "My own JavaScript madness. Depends on jQuery."
+ , "weight": 1
+ }
+ }
+}
+```
+
+Here the custom JavaScript will always be loaded after jQuery.
+
### The extract field
### The pre-process configuration fields
TO BE DONE

0 comments on commit 4d3041e

Please sign in to comment.