Closed joseluisq closed 9 years ago
In ExpressJS project I have the config.rb file in root of /public directory with common paths options:
config.rb
/public
My /public/config.rb file:
/public/config.rb
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:
/app.js
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.
.scss
css
config_file: 'config.rb', not TRUE
My file structure:
Great I have solved this ! Thanks !
Yes, the middleware doesn't do any detection of the config_file path, you must pass it manually.
In ExpressJS project I have the
config.rb
file in root of/public
directory with common paths options:My
/public/config.rb
file:In my
/app.js
file:This configuration doesn't compile my
.scss
file incss
directory.