M
M
Maxim2015-03-11 21:36:51
css
Maxim, 2015-03-11 21:36:51

How to compile css in sass/compass into different folders?

Let's say there are several folders/files:
sass/stylesheets1/style1.scss
sass/stylesheets2/style2.scss
sass/stylesheets3/style3.scss
I need to compile them in the same way:
css/stylesheets1/style1.css
css/stylesheets2/style2.css
css/stylesheets3/style3.css
How? In config.rb we have only one option: the contents of the sass_dir folder are compiled into the css_dir folder.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey B., 2015-03-11
@andykov

no way, use assemblers

V
vsuhachev, 2015-03-14
@vsuhachev

When it comes to rails, assets are collected in one file and there is no other way. If you want to write your own builder, then put the sass gem and call sass-convert with your paths.
Hint: learn Rake, with it you can create your builder in 5 minutes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question