I found some asset managers for node and expressed:
connect-assets , bundle-up , node.packer , node-static-asset
But they all use only one configuration to serve the concatenated and minimized assets in production. Does anyone know how to manage route-related resources with asset managers?
Say what I want:
in '/ route1' JS files 'one.js' and 'two.js'
on the '/ route2' JS files are three.js and four.js
Now I use my own βasset managerβ as follows:
app.get('/route', function(req, res) { res.render('route', { title: 'Nice title', assets: ['jquery', 'utils', 'minifier']
But in this way JS files are not minimized or concatenated during production.
source share