Coder Social home page Coder Social logo

Comments (7)

jrief avatar jrief commented on June 24, 2024

the delete option is used to remove css files, which otherwise would "pollute" the working directory.
For me its quite useful.

If I get you right, you would like to have a --force option?

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on June 24, 2024

Just from going over the code yesterday, I assume that you're talking about the render method in the Node in salt_tags.py or delete_file(self, node), in compilecss.py. But I think you misunderstood me. When having a development server running and you load a page, it'll generate the CSS and map which is good. But when deleting the CSS-file that was generated, it will not regenerate it when refreshing the website when it should because there is no CSS-file to be found anywhere. Only when deleting the map, will it trigger the regeneration of both files. The file is not deleted by the project, but I manually remove it in Finder.

from django-sass-processor.

jrief avatar jrief commented on June 24, 2024

If I understand well, you use --delete-files on the dev server.

You shouldn't do this during development. First, make sure that generated css (and map) files are stored outside of your working directory. These files can be deleted together with their folder whenever you want.

The command ./manage.py compilescss is intended only for production or for preparing production. This command will intentionally pollute your working directory with compiled files. To remove those files use the --delete-files option.

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on June 24, 2024

I do not use --delete-files or any special command on the server. The files that I deleted were automatically generated.

These files can be deleted together with their folder whenever you want.

That's the problem, deleting them does not regenerate them in development. All of these files were generated on the fly when loading the website and not with the compilecss command as I said.

from django-sass-processor.

jrief avatar jrief commented on June 24, 2024

then your template is cached and the templatetag sass_src is not "seen" by this app when you reload the page.

from django-sass-processor.

jrief avatar jrief commented on June 24, 2024

can I close this?

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on June 24, 2024

Well it would still require a look perhaps. It's odd that it's only triggered when deleting the map.

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.