azat-co / expressworks

Learn Express.js from the author of one of the best books on Express.js—Pro Express.js— with this workshop that will teach you basics of Express.js.
MIT License
715 stars 220 forks source link

Exercise STYLISH CSS problem #104

Closed diegofaria closed 8 years ago

diegofaria commented 8 years ago

The STYLISH CSS exercise is passing without the use of stylus middleware. This solution is passing:

var express = require('express')
var port = process.argv[2]
var staticFilePath = process.argv[3]
var app = express()

app.use(express.static(staticFilePath))

app.listen(port)

It got me confused. :smile:

azat-co commented 8 years ago

@diegofaria not really, you just tried it many enough times so the official solution code generated main.css and your wrong solution used that file. here's the enhancement: https://github.com/azat-co/expressworks/commit/1f7767462956c331c4426a2cfee01b6058b90529

you hack should fail now :smile:

diegofaria commented 8 years ago

Oh ok, thank you @azat-co! :smiley: