2

One of the most promising D7 module http://drupal.org/project/advagg for minification and aggregation of CSS and JS isn't ready for production sites yet.

In such a situation which is the best option?

I also checked http://drupal.org/project/core_library but it sounds overkill.

What other good options we have inside or outside drupal?

5
  • The author of advagg is a regular here. Hopefully he will see this.
    – mpdonadio
    Commented Jan 19, 2013 at 4:30
  • Have you tried the anwers given here drupal.stackexchange.com/questions/484/… Commented Jan 19, 2013 at 4:37
  • One is advanced aggregation which I mentioned above that it's not production ready yet.Javascript aggregator is for D6 not D7.
    – ganesh
    Commented Jan 19, 2013 at 6:02
  • 1
    Modules are the way to do non-core tasks in Drupal. Why do you want to hack around the way system is designed to use?
    – Mołot
    Commented Nov 22, 2013 at 21:15
  • Outside of Drupal you would need some sort of build tool like Gulp if I am understanding the question right, but as @Mołot noted, that is what the modules are for. Commented Feb 21, 2019 at 14:45

2 Answers 2

3

This is actually a module, but the Speedy module minifies core JS, has a stable release, and is regularly updated.

3

When you select "Aggregate and compress CSS files" check box from "Performance" it will minify the CSS.

Minify is a module, for Javascript you can use Minify module to do the same. Minify module minify the JavaScript using Google compiler. It also works with "Boost" and "Aggregate JavaScript files" so you can also get advantage of combining multiple JavaScript files which is default option in Drupal 7.

Minify not only minify the Core JS, but also minify the custom JS.

Minify module also minify HTML.

For ref: How to minify Javascript in D7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.