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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercise STYLISH CSS problem

diegofaria opened this issue · comments

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. 😄

@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: 1f77674

you hack should fail now 😄

Oh ok, thank you @azat-co! 😃