MinifyX use on the site

What is the content of the minifyx.cacheFolder system setting? What is the content of the minifyx.cacheUrl system setting?

I do not know. where to watch it?

content_copy

share

Which MODX version do you use?

MODX Revolution 2.8.4-pl

Then you can find the MODX system settings menu topright (on the right of the user menu).

Директория с готовыми файлами
minifyx.cacheFolder
assets/minifyx/

Папка кэша
minifyx.cacheUrl
assets/minifyx/

That looks right. I don’t get the clue, what’s going wrong then.

is everything right here?

content_copy

share

[[!MinifyX?
	&minifyCss=`1`
	&cssSources=`
		/assets/2022/css/font-awesome-all.css,
		/assets/2022/css/flaticon.css,
		/assets/2022/css/owl.css,
		/assets/2022/css/bootstrap.css,
        /assets/2022/css/jquery.fancybox.min.css,
        /assets/2022/css/animate.css,
        /assets/2022/css/nice-select.css,
        /assets/2022/css/jquery-ui.css,
        /assets/2022/css/color.css,
        /assets/2022/css/style.css,
        /assets/2022/css/responsive.css
	`
     &cssPlaceholder=`MinifyX.css`
]]
[[!+MinifyX.css]]

Maybe the sources should not start with a /. But that will be stripped away with the code.

On your screenshot the css placeholder is cached.

I tried removing /. No result. Used - !

[[!MinifyX?
	&minifyCss=`1`
	&cssSources=`
		assets/2022/css/font-awesome-all.css,
		assets/2022/css/flaticon.css,
		assets/2022/css/owl.css,
		assets/2022/css/bootstrap.css,
        assets/2022/css/jquery.fancybox.min.css,
        assets/2022/css/animate.css,
        assets/2022/css/nice-select.css,
        assets/2022/css/jquery-ui.css,
        assets/2022/css/color.css,
        assets/2022/css/style.css,
        assets/2022/css/responsive.css
	`
     &cssPlaceholder=`MinifyX.css`
]]
[[!+MinifyX.css]]

No output in the placeholder or is the minified css not found?

Can you add &forceUpdate=`1` to the snippet call? Then the MinifyX cache and the generated assets collections are cleaned on every page refresh.

added. nothing. there is one file in the folder /assets/minifyx/css
the logs are the same

content_copy

share Could not create file

Ok, the assets collection is generated but the fonts files are not found. That has to be solved in the CSS files itself.

You can set the url to the fonts relative to the assets/minifyx folder or use an absolute url. If the fonts are located in assets/fonts in the webroot, you have to set the font path in the css file absolute to /assets/fonts or relative to ../fonts.

need to pass the path in your css? there is no /assets/minifyx/css folder

The original CSS files are combined (and minified) and saved in assets/minifyx/. So the path to the CSS file is different than the original assets/2022/css/ folder. That way the referenced fonts in i.e. assets/2022/css/font-awesome-all.css are not found. The path to the FontAwesome font files is probably assets/2022/fonts/ and thats different to assets/minifyx. In the css file you maybe reference the files with ../fonts. That’s not possible.

I’m sorry, I did not understand. it is required in css in the assets/minifyx/css folder to set the path /assets/2022/fonts/fa-brands-400.eot ?

You have to edit the assets/2022/css/font-awesome-all.css file and the others and use i.e. absolute urls to the fonts inside. That way the font files are found after the combination.

Hello. I registered the paths /assets/2022/fonts/fa-regular-400.woff2. Not displayed.
There are no errors in the console. Checked other css , registered there.
Still not displayed