Is there any way to use SCSS with Express ?
I tried with :
app.use(express.compiler({ src: __dirname + '/public', enable: ['scss'] }));
But it gives me an error :
DEBUG: TypeError: Cannot read property 'match' of undefined
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no way you can use it that way i.e. as a built in module. The author of ExpressJS himself said that it is not possible. I was having the same problem and found out that you either had to use SASS.js or LESS.
Refer this: https://github.com/visionmedia/express/issues/787
I recommend you to use Stylus!