Skip to content

Commit

Permalink
updating to latest @braitsch/express
Browse files Browse the repository at this point in the history
  • Loading branch information
braitsch committed Apr 12, 2021
1 parent 1784c94 commit c50074c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

module.exports = function(app) {
module.exports = function(app, express) {

require(__dirname + '/server/routes')(app);
app.use(require('stylus').middleware({src: __dirname + '/public'}));
// express.static must come after stylus middleware & before routes //
app.use(express.static(__dirname + '/public'));
require(__dirname + '/server/routes')(app);

}
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"url": "git@github.com:braitsch/js3.git"
},
"dependencies": {
"@braitsch/express": "^1.1.1",
"@braitsch/express": "^1.1.4",
"express": "^4.17.1",
"pug": "^3.0.2",
"stylus": "^0.54.8"
},
"engines": {
"node": "12.21.0"
"node": ">=12.21.0"
}
}

0 comments on commit c50074c

Please sign in to comment.