add chat
This commit is contained in:
parent
27520842e3
commit
2d177c6b27
16 changed files with 228 additions and 31 deletions
|
@ -28,7 +28,12 @@ class WebServer {
|
|||
});
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.render('index', {});
|
||||
try {
|
||||
res.render('index', {});
|
||||
} catch(err) {
|
||||
wingbase.error('Renderng error:' + err);
|
||||
res.render('error/500', { error: err });
|
||||
}
|
||||
});
|
||||
|
||||
app.use(express.static('public/static'));
|
||||
|
|
|
@ -26,12 +26,13 @@ function minifyJs(callback) {
|
|||
}
|
||||
|
||||
scripts.sort((a, b) => getPriority(b) - getPriority(a));
|
||||
scripts = scripts.map(s => s.replace(/(\/\/@\d+\n)/, ''));
|
||||
|
||||
let comment = '';
|
||||
|
||||
cache = scripts.join('');
|
||||
|
||||
// Remove to re-enable minifying.
|
||||
//Remove to re-enable minifying.
|
||||
callback(cache); return;
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue