it's an incredible module but I still do not know how to make it work

Comments

Nelo_Drup created an issue. See original summary.

albertosilva’s picture

Could you please give me more information on the problem your facing? Are you getting problems on generating the critical css files?

Regards,

Alberto Silva

albertosilva’s picture

Status: Active » Postponed (maintainer needs more info)
albertosilva’s picture

Assigned: Unassigned » albertosilva
nelo_drup’s picture

Assigned: albertosilva » Unassigned
Category: Support request » Task

Thanks for answering I understand how the module works, but I can not generate the critical css, I know I may ask for a lot, but it would be amazing a video, I have several projects in drupal and I could apply this great module more easily

albertosilva’s picture

You should install gulp (https://gulpjs.com/) and use the example from https://github.com/asilgag/critical-css-gulp-example. That's a complete working example for gulp, so please refer to it and tweak it for your needs.

albertosilva’s picture

Category: Task » Support request
albertosilva’s picture

Assigned: Unassigned » albertosilva
lquessenberry’s picture

How do I use the working example when i already have an existing gulpfile? I can't seem to make it work.

drup16’s picture

I was able to get this to work by doing the following.

  1. Added a new task within my gulpfile.js file so that it would minify all my CSS into a target directory.
  2. Created a directory within my theme such as (mytheme/css/critical/)
  3. On the module's form page, we set the directory to the /css/critical/
  4. Cleared all caches
albertosilva’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)
avpaderno’s picture

Issue tags: -tutorial criticas css drupal 8

I am removing the issue tags wrongly used. I apologize for bumping this issue.