Coder Social home page Coder Social logo

Comments (6)

AndreasBackx avatar AndreasBackx commented on July 22, 2024 1

As far as I'm aware the output will be stored in either the static root or the specified sass root. I should've been more specific and that might be because this was very late (or early), but my idea was to output them in a path relative to the input SCSS-file.

root/
    app/
        scss/
            app.scss
        static/
            css/
                app.css
    app2/
        scss/
            app2.scss
        static/
            css/
                app2.css

Instead of:

root/
    app/
        scss/
            app.scss
    app2/
        scss/
            app2.scss
    static/
        css/
            app.css
            app2.css

app/static, app2/static, app/scss, and app2/scss would then be in STATICFILES_DIRS. Perhaps make SASS_PROCESSOR_ROOT possible to be a path relative to the source SCSS file?

from django-sass-processor.

jrief avatar jrief commented on July 22, 2024

But it does – at least in my setup.
I'm currently using two apps relying on sass-processor and they both are shipped with their own ...scss files.

from django-sass-processor.

Auroch avatar Auroch commented on July 22, 2024

Do you have find a solution for obtaining this behaviour ?

from django-sass-processor.

jrief avatar jrief commented on July 22, 2024

I always keep my compiled files out of my projects, hence my STATIC_ROOT points onto that external folder. This prevents to have a mixture of hand written and autogenerated files. This also is the reason why you need STATICFILES_FINDERS = (..., 'sass_processor.finders.CssFinder', ...).

from django-sass-processor.

jrief avatar jrief commented on July 22, 2024

@AndreasBackx can I close this?

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on July 22, 2024

Ya, it's not that big of a deal.

from django-sass-processor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.