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

  • SEARCH
  • Home
  • 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

Is there a canonical colorspace conversion library? I can't find any pre-existing solutions. Is
I'm currently using Spring+Hibernate+MySQL for a project I'm working on. I realized that a
I am currently working on a private project that is going to use Google's
I'm curious as to any solutions out there for addressing object hierarchies in an
why do I get this exception?please suggest any solutions.i have properly copied mail.jar and
Anyone got any neat solutions to prevent a Silverlight ChildWindow being moved? thanks, Mark
I want my Nancy site to accept Google/Facebook/OpenID authentication. Are there any existing solutions
Are there any good technical solutions for extremely long term archiving of data, for
Are there any visitor statistics solutions for Ruby on Rails? I'm talking something like
Are there any pre-existing solutions out there which would extend the built in SQL

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.