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

?debugClientLibs=true breaks functionality on publish instance #9

Closed
geekyrudh opened this issue Sep 20, 2017 · 2 comments
Closed

?debugClientLibs=true breaks functionality on publish instance #9

geekyrudh opened this issue Sep 20, 2017 · 2 comments
Labels

Comments

@geekyrudh
Copy link

geekyrudh commented Sep 20, 2017

This issue only occurs in the publish environment.
My css.txt file in the clientlib looks like this:

#base=sass
main.scss

On hitting http://localhost:4503/content/mypage.html?debugClientLibs=true, CSS is not served. On checking the Sources, the CSS file has just one line:
@import url("/etc/clientlibs/myproject/main/sass/main.scss");

Please suggest a workaround/fix

@geekyrudh geekyrudh changed the title ?debugClientLibs=true breaks functionality ?debugClientLibs=true breaks functionality on publish instance Sep 20, 2017
@mickleroy
Copy link
Owner

Hi @geekyrudh, I'm unable to reproduce your issue when trying with LESS and SASS client libraries with debugClientLibs=true. I'm using AEM 6.2 SP1-CFP4.

Sass:
http://localhost:4503/etc/designs/helloworld/clientlibs-sass.css?debug=true

@import url("/var/clientlibs/etc/designs/helloworld/clientlibs-sass/generated/main.css");

Less:
http://localhost:4503/etc/designs/helloworld/clientlibs-less.css?debug=true

@import url("/var/clientlibs/etc/designs/helloworld/clientlibs-less/generated/main.css");

Foundation CSS:
http://localhost:4503/etc/clientlibs/foundation/main.css?debug=true

@import url("/libs/mcm/components/cta-graphicallink/clientlibs/image.css");
@import url("/libs/foundation/components/textimage/clientlibs/textimage.css");
@import url("/libs/foundation/components/search/clientlibs/search.css");
@import url("/libs/foundation/components/profile/clientlibs/profile.css");
@import url("/libs/foundation/components/parbase/clientlibs/parbase.css");
@import url("/libs/foundation/components/image/clientlibs/image.css");
@import url("/libs/foundation/components/download/clientlibs/download.css");
@import url("/libs/foundation/components/carousel/clientlibs/carousel.css");
@import url("/etc/clientlibs/foundation/form/form.css");

Naturally, if you are not logged in the "anonymous" user would be used to fetch the compiled CSS under /var/clientlibs which would fail.

Is your Sass file compiling?

@mickleroy
Copy link
Owner

mickleroy commented Sep 27, 2017

@geekyrudh have you managed to resolve your issue? If so, I'll close this off.

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

No branches or pull requests

2 participants