1
0
Fork 0

Foxx: Change to the Asset Pipeline

/cc @fceller
This commit is contained in:
Lucas Dohmen 2013-03-27 14:36:17 +01:00
parent bfe232c299
commit a87f881ea7
1 changed files with 13 additions and 9 deletions

View File

@ -215,10 +215,12 @@ A more complete example for a Manifest file:
},
"assets": {
"application.js": [
"vendor/jquery.js",
"assets/javascripts/*"
]
"application.js": {
"files": [
"vendor/jquery.js",
"assets/javascripts/*"
]
}
},
"setup": "scripts/setup.js",
@ -249,13 +251,15 @@ Deliver all files in a certain folder without modifying them. You can deliver te
The value for the asset key is an object consisting of paths that are matched to the files they are composed of. Let's take the following example:
"assets": {
"application.js": [
"vendor/jquery.js",
"assets/javascripts/*"
]
"application.js": {
"files": [
"vendor/jquery.js",
"assets/javascripts/*"
]
}
}
If a request is made to `/application.js` (in development mode), the array provided will be processed one element at a time. The elements are paths to files (with the option to use wildcards). The files will be concatenated and delivered as a single file.
If a request is made to `/application.js` (in development mode), the file array provided will be processed one element at a time. The elements are paths to files (with the option to use wildcards). The files will be concatenated and delivered as a single file.
## Development Mode