Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 123887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:21:30+00:00 2026-05-11T04:21:30+00:00

Do any solutions currently exist that can minify an entire project directory? More importantly,

  • 0

Do any solutions currently exist that can minify an entire project directory? More importantly, do any solutions exist that can shorten classnames, id’s, and keep them consistent throughout all documents?

Something that can turn this:

Index.html —

<div class='fooBar'>   <!-- Code --> </div> 

Styles.css —

.fooBar {    // Comments and Messages   background-color: #000000;  } 

Index.js —

$('.fooBar').click( function () {    /* More Comments */   alert( 'fooBar' );  }); 

Into This:

Index.html —

<div class='a'></div> 

Styles.css —

.a{background-color:#000;} 

Index.js —

$('.a').click(function(){alert('fooBar');}); 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T04:21:31+00:00Added an answer on May 11, 2026 at 4:21 am

    What you’re looking for isn’t minifying, but compression. Minifying by definition only removes whitespace, since shortening identifiers alters the interface, potentially breaking external scripts that depend on it. For this reason, minifying is inherently ‘safer’ than compression, although in a closed system (ie. an encapsulated web app), compression can be a good idea.

    For Javascript, most people use the YUI Compressor or Dean Edwards’ Packer.

    For CSS, there are plenty of tools for ‘optimizing’ the styles, but I don’t know of any that shorten class names as well. The reasons for this could be several:

    1. To compress a CSS file, the script would need to know all HTML files that include it, in order to change the class and id references within them. Depending on your web site’s size and structure, his could be non-trivial.
    2. After compression, semantic HTML becomes less readable, as <span class='image_caption'> turns into <span class='a12'>, or worse yet, <p id='a12'>.

    It would definitely be possible to do something like what you describe (and I’m actually working on a personal CMS/framework that will), but for it to be maintainable, it would probably have to be an integrated part of a tightly structured CMS, compressing all files ‘behind the scenes’ whenever a new change is published, while keeping all the original files so the site can be maintained as a whole.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I doubt it can be done portably, but are there any solutions out there?
It seems like such a simple thing, but I can't find any obvious solutions...
Does anyone know of any reverse proxy solutions that allow the content/data of an
I'm currently using Spring+Hibernate+MySQL for a project I'm working on. I realized that a
Since I'm not a huge fan of any of the current solutions for managing
Are there any existing solutions for remote execution of commands on a windows server
Is anyone aware of any gems, tutorials, or solutions enabling a user to sign
Question I'm looking for a Java in-memory object caching API. Any recommendations? What solutions
Is there any persistence solution for Common Lisp, such as Elephant, that allows function
I am working on splitting out an existing, working application that I currently have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.