mape/connect-assetmanager — Issue #19: Does it support multiple JS assets?
Author: vinkaga
Created: 2011-10-16 16:09:39+00:00
State: open

I've been trying to build two separate JS assets for separate pages like the following

var assetManagerGroups = {
'js': {
'route': /\/static\/js\/[0-9]+\/.*\.js/
, 'path': './public/js/'
, 'dataType': 'javascript'
, 'files': [
'jquery.js'
, 'jquery.client.js'
]
}
, 'js2': {
'route': /\/static\/js\/[0-9]+\/.*\.js/
, 'path': './public/js/'
, 'dataType': 'javascript'
, 'files': [
'jquery.js'
]
}
};

It generates separate hashes for the js and js2 assets but the contents of js2 seem to be the same as that of js (always the first entry in list). What am I doing wrong?