Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Galleria don't use .min.css files? #427

Open
jonatasrafael opened this issue Jul 30, 2020 · 2 comments
Open

Galleria don't use .min.css files? #427

jonatasrafael opened this issue Jul 30, 2020 · 2 comments

Comments

@jonatasrafael
Copy link

Hello everyone,

When using the .min.js gallery should it use THEME.min.css?
For example, in galleria/dist/themes/azur/demo-cdn.html it load galleria.azur.min.css and galleria.azur.css ?

I altered the code galleria.azur.min.js in my localhost from:
{return b.addTheme({name:"azur",version:1.6,author:"Galleria",css:"galleria.azur.css"
to
{return b.addTheme({name:"azur",version:1.6,author:"Galleria",css:"galleria.azur.min.css"

And loaded only galleria.azur.min.css.

is there any configuration to use only the .min css file because it seems to me that when we use .min js it does not use .min css?

@sammik
Copy link

sammik commented Jul 31, 2020

You can include minified css into header. It should work.
https://galleriajs.github.io/docs/references/optimize.html#include-your-theme-in-the-head

@jonatasrafael
Copy link
Author

Hi, Thanks for the answer.

I tried include minified css into header, it load the two: galleria.azur.css and galleria.azur.min.css and the elements use only galleria.azur.css.

I believe it's because the line in galleria.azur.min.js:
return b.addTheme({name:"azur",version:1.6,author:"Galleria",css:"galleria.azur.css"

I only managed to stop loading the galleria.azur.css by changing the this line in galleria.azur.min.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants