diff --git a/src/app.js b/src/app.js index 46511c1..fa83504 100644 --- a/src/app.js +++ b/src/app.js @@ -63,6 +63,7 @@ app.locals.pluralize = require("pluralize"); if (process.env.NODE_ENV === "development") { var connectLiveReload = require("connect-livereload"); + app.use("/scss", express.static(path.join(__dirname, "scss"))); app.use(connectLiveReload()); } @@ -172,7 +173,8 @@ app.use(function (err, req, res, next) { // catch 404 and forward to error handler app.use(function (req, res, next) { - next(createError(404)); + // next(createError(404)); + res.status(404).send('not found') }); module.exports = {app}; \ No newline at end of file