updated build system

This commit is contained in:
Marc Wäckerlin
2017-03-16 07:10:39 +00:00
parent 203f866c28
commit 693ecbefe5
10 changed files with 170 additions and 27 deletions

View File

@@ -11,4 +11,20 @@ module.exports = function(app, package) {
})
})
if (app) {
var path = require('path')
// serve jquery library
app.get('/jquery.js', function(req, res) {
res.sendfile('jquery.min.js', {root: path.dirname(require.resolve('jquery'))});
});
// serve openpgp library
app.get('/openpgp.js', function(req, res) {
res.sendfile('openpgp.min.js', {root: path.dirname(require.resolve('openpgp'))});
});
}
}