Download the PHP package kaystrobach/dyncss without Composer
On this page you can find all versions of the php package kaystrobach/dyncss. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kaystrobach/dyncss
More information about kaystrobach/dyncss
Files in kaystrobach/dyncss
Package dyncss
Short Description Compile your CSS dynamically with DynCss Adapters.
License GPL-2.0+
Homepage http://donate.kay-strobach.de/
Informations about the package dyncss
Less in general
The parser libs may ship dedicated information based on the language you want to use.
Frontend
Example TYPOScript:
page.includeCSS.testLess = EXT:dyncss_test/Resources/Public/Stylesheets/Example.less
Example Overrides (dynamic color settings, dynamic image overrides):
Example less file:
Backend: Include in backend.php
To see how it works, please take a look into dyncss_test.
Caching
In production mode, CSS is only re-rendered if the topmost less or sass file, which is directly included by typoscript, is altered.
In development mode, also changes in files that are imported inside a less or sass file trigger a new rendering.
Development mode is triggered either by TYPO3 application context "Development" or by the preset "Development" in the install tool.
Additionally rerendering will happen if you change TS values, which are used in the less files.
Additionally we add a new clear cache button to just clear the dyncss cache.
Source maps
If the compiling library supports source maps, you can enable that feature by enabling the debug mode of dyncss in the extensionmanager settings.
Normally the source maps are appended to the generated css files, to avoid confusion.
IMPORTANT
You need to disable css concatenation to get the sourcemaps working.
This can be done with the following TS based on your environment: