Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8998717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:04:25+00:00 2026-06-16T00:04:25+00:00

So I have a basic Express project set up and I’m using this github

  • 0

So I have a basic Express project set up and I’m using this github project, https://github.com/andrew/node-sass, to be able to use Sass on top of node. This is my app.js currently:

var io = require('socket.io'),
    express = require('express'),
    path = require('path'),
    routes = require('./routes'),
    jquery = require('jquery');


/**
* Create app
*/

var app = express()
  , server = require('http').createServer(app)
  , io = io.listen(server);

/**
* Configure app
*/ 

app.configure(function(){ 
    app.set('port', 8080);
    app.set('views', __dirname + '/views');
    app.set('view engine', 'ejs');
    app.use(express.static(path.join(__dirname, 'public')));
});

What do I need to do to get Sass working and auto recompiling? I can’t seem to find any useful info for Express servers specifically.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:04:26+00:00Added an answer on June 16, 2026 at 12:04 am

    First add this require statement:

    var sass = require("node-sass");
    

    and then the following code, in your app.configure block:

    ...
    app.use(sass.middleware({
        src: <your-sass-files-dir>,
        dest: path.join(__dirname, 'public'),
        debug: true
    }));
    ...
    

    But I’m sorry to say that the node-sass library is quite useless at the moment, because the @import‘s, in your scss files, does not work as it’s supposed to… See https://github.com/andrew/node-sass/issues/27 for current status.

    UPDATE 2013-10-22: Apparently the issue mentioned above seems to be fixed according to @jonathanconway in the comments below… Though there’s still an unanswered comment on the issue from someone that still experiences the error at 2013-09-03

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using node, express and connect for a simple app and have basic HTTP
I am using Microsoft Visual Basic 2010 Express. I have a WPF-based project. I
I'm working on handling file uploads using express.js and node, and have the basic
I have a pretty basic REST call that is written using node / express
I have a basic Socket.io server setup like this: var server = express.createServer().listen(port); this.io
I'm using Visual Basic 2010 Express. I have a form that can be minimized.
I have created an application in VB.NET (using Microsoft Visual Basic 2010 Express) with
I am using VB.NET 2010 (Visual Basic 2010 Express) on a WPF-based project. I
I have a project I made in Visual Basic 2008 Express. I converted it
I have installed http://www.mysql.com/downloads/connector/net/ So I am able to create a mysql connection. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.