Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sass compiling with partials #189

Open
FernE97 opened this issue Jan 14, 2015 · 1 comment
Open

Sass compiling with partials #189

FernE97 opened this issue Jan 14, 2015 · 1 comment

Comments

@FernE97
Copy link

FernE97 commented Jan 14, 2015

Is it possible to have the main css file compile when updating a partial sass file from an @import? Right now the only time the css gets compiled is when the main sass file is changed.

app.rb

assets {
    serve '/css',    from: 'assets/css'

    css :app_css, '/css/app.css', [
        '/css/style.css'
    ]

    css_compression :sass, :output => :compressed
}

file structure

app
    |- assets/
        |- css/
            |- partials/
                |- _example.scss
            |- style.scss

style.scss

@import 'assets/css/partials/example';

_example.scss

body {
    background: #efefef;
}

So if I'm editing the _example.scss partial and say I change the background color to black, the css doesn't recompile until I go into the main style.scss file and make a change.

Not sure if I'm missing a setting somewhere or just don't have it set up properly. Thanks

@aslakhellesoy
Copy link

I'm having the same issue with less

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants