nathggns / node-compass

Compass middleware for node.js.
43 stars 13 forks source link

config_file: true option doesn't work #33

Closed joseluisq closed 9 years ago

joseluisq commented 9 years ago

In ExpressJS project I have the config.rb file in root of /public directory with common paths options:

My /public/config.rb file:

http_path = "/"
css_dir = "css"
sass_dir = "scss"
images_dir = "img"
fonts_dir = "css/fonts"
javascripts_dir = "js"
output_style = :compressed

In my /app.js file:

var express = require('express');
var app = express();

app.use(require('node-compass')({
    config_file: true
}));

module.exports = app;

This configuration doesn't compile my .scss file in css directory.

PredokMiF commented 9 years ago

config_file: 'config.rb', not TRUE

My file structure:

- public - resources - config.rb - css - sass - img config.rb ``` images_dir = "img" css_dir = "css" sass_dir = "sass" #output_style = :compressed ``` app.js compass part: ``` javascript app.use(require('node-compass')({ //logging: true, //cache: false, project: 'public/resources', config_file: 'config.rb' })); ``` It is working, no bug, but manual must be better.
joseluisq commented 9 years ago

Great I have solved this ! Thanks !

nathggns commented 9 years ago

Yes, the middleware doesn't do any detection of the config_file path, you must pass it manually.