Giter Site home page Giter Site logo

Comments (9)

fritzmg avatar fritzmg commented on May 27, 2024 1

You could add the listener as an App customisation - or provide it in your own extension. Imho it should not be added to this extension.

from contao-component-style-manager.

fritzmg avatar fritzmg commented on May 27, 2024

The SCSS "cache" isn't really related to this extension?

from contao-component-style-manager.

Aybee avatar Aybee commented on May 27, 2024

Yes I know, but there is no other extension that provides this. Or is there?

from contao-component-style-manager.

Aybee avatar Aybee commented on May 27, 2024

Ok, thank you very much. Don't know how to do it, but maybe come back to it later.

from contao-component-style-manager.

zoglo avatar zoglo commented on May 27, 2024

@Aybee
The Style-Manager is used to set up classes or template-variables.
It does not affect any caching nor the SCSS files.
I do not think this feature has anything to do with the Style Manager.

What you might be looking for is following bundle of ours as it will compile your scss files into a css file, hence completely bypassing a cache as you won't need contao to process it anymore -> You just generate the .css file and embed it into your layout.

https://github.com/oveleon/contao-theme-compiler-bundle

from contao-component-style-manager.

Aybee avatar Aybee commented on May 27, 2024

Ok, worth a try. Thank you.

I think the theme compiler is not what I need. I edit SCSS files directly on the server and would then like to be able to see the CSS result directly in the FE.

Contao already compiles SCSS files very well, but not when I edit the files with my editor on the server.

I will then first of all install both extensions, component-style-manager and theme-toolbox. Unfortunately, erdmannfreunde don't want to include the options for news etc. in its extension.

from contao-component-style-manager.

zoglo avatar zoglo commented on May 27, 2024

Mind that the theme compiler uses the same technique (scssphp) + having ready to ship out CSS files in your layout means less stress for your server.

I usually just change my files and upload them and compile via ssh when I'm done for a few of our projects.

The common practice nowadays (it's still personal preference for most people) is compiling locally, especially since libraries like scssphp still don't support dartsass with use and forward.

Just because it's supported, doesn't mean it's good practice when a feature like disabling the scss cache is needed if you know what I mean.

from contao-component-style-manager.

Aybee avatar Aybee commented on May 27, 2024

It's only for developement, not for going live. You can switch it on and off with theme-toolbox.

from contao-component-style-manager.

zoglo avatar zoglo commented on May 27, 2024

Closed as stale and invalid

from contao-component-style-manager.

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.