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
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!
Take a look @ Node-sass -- NPM Package | Github
This is a wrapper around the C/C++ library libsass.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With