Skip to content

Commit 91ae4e1

Browse files
committed
Bundle Mashlib.
Closes #773.
1 parent f375d3b commit 91ae4e1

File tree

4 files changed

+755
-3
lines changed

4 files changed

+755
-3
lines changed

lib/create-app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const defaults = require('../config/defaults')
2222
const options = require('./handlers/options')
2323
const debug = require('./debug').authentication
2424
const path = require('path')
25+
const { routeResolvedFile } = require('./utils')
2526

2627
const corsSettings = cors({
2728
methods: [
@@ -53,6 +54,8 @@ function createApp (argv = {}) {
5354

5455
// Serve the public 'common' directory (for shared CSS files, etc)
5556
app.use('/common', express.static(path.join(__dirname, '../common')))
57+
routeResolvedFile(app, '/common/js/', 'mashlib/dist/mashlib.min.js')
58+
routeResolvedFile(app, '/common/js/', 'mashlib/dist/mashlib.min.js.map')
5659

5760
// Add CORS proxy
5861
if (argv.proxy) {

0 commit comments

Comments
 (0)