Blog

JSMin 3.0 released with LESS Support!

Luis Majano April 15, 2013

Spread the word

Luis Majano

April 15, 2013

Spread the word


Share your thoughts

It's official. Our JSMin project has matured once more and we now introduce LESS support into the mix and a few more goodies.  We have also completely documented this project for your viewing pleasure in our wiki: http://wiki.coldbox.org/wiki/Projects:JSMin-Compressor.cfm

Version 3.0

  • Fixes for responsive design
  • Added capabilities for LESS compilation
  • Auto-detection of LESS files in minify
  • ColdFusion 9 and above only

With the plugin you will be able to not only compile LESS source to files or directly to CSS, but our minify methods also account for LESS file detection and will auto-compile them for you.  It is even a bit smart and can detect when your LESS source files are modified and re-compile them.

<head>
// JavaScript
#getMyPlugin("JSMin").minify('includes/js/myscripts.js,includes/js/jquery.js')#

// CSS
#getMyPlugin("JSMin").minify('includes/css/site.css,includes/css/boxes.css')#

// LESS Support
#getMyPlugin("JSMin").minify('includes/css/site.less,includes/css/boxes.less')#

// LESS Support With CSS
#getMyPlugin("JSMin").minify('includes/css/site.less,includes/css/boxes.less,includes/css/custom.css')#

// With Custom Location
#getMyPlugin("JSMin").minify(assets='includes/css/site.less,includes/css/boxes.less',
                             location='includes/mycache')#
</head>

 

Add Your Comment

(1)

Apr 15, 2013 19:10:50 UTC

by Dominic Watson

Have you seen Costa tickets (<a href=http://dominicwatson.github.com/cfstatic)?">http://dominicwatson.github.com/cfstatic)?</a> It was actually inspired by a very simple ColdBox plugin for asset management. It does dependency management,concatenation, minification, cache busting, LESS, CoffeeScript, etc. In ColdBox,I create a simple plugin that wraps it and sprinkle some convention in - makes for very little effort for compiled files with the html to include them rendered in the correct order and with any necessary dependencies (including external ones like jQuery).

I'll definitely check this out for some inspiration though. Big fan of all the ColdBox stuff.

Recent Entries

BoxLang 3.4 Blog Series Part I: Gateways, One Interface, Any Platform

BoxLang 3.4 Blog Series Part I: Gateways, One Interface, Any Platform

Every AI agent that touches something real eventually needs a human in the loop. Someone has to approve the delete, confirm the wire transfer, or just say "go ahead" before a tool call runs. The question BoxLang AI 3.4.0 answers is: approve it how? A terminal prompt? A webhook? A Slack button?

Luis Majano
Luis Majano
September 04, 2026
BoxLang 1.17 Series Part1 : Module Inception

BoxLang 1.17 Series Part1 : Module Inception

BoxLang has always been an extensible language. As of 1.17.0, it is a hierarchically extensible one. Every module ecosystem you have worked in is flat. You declare a list of dependencies and something outside the language, a package manager or a build tool, resolves and downloads and orders them. The language itself has no opinion about the shape of the graph. It sees a list, not a tree.

Luis Majano
Luis Majano
September 04, 2026
Why Migrate from ColdFusion to BoxLang? 10 Reasons to Modernize Your CFML Applications

Why Migrate from ColdFusion to BoxLang? 10 Reasons to Modernize Your CFML Applications

For organizations running applications built with ColdFusion or CFML, modernization often comes with an uncomfortable question:

“Do we keep investing in the platform we already have, or do we rewrite everything in another language?”

That choice is not as binary as it may seem.

At Into the Box 2026, Ortus Solutions Senior Architect and BoxLang core developer Jon Clausen presented a session titled “Top Ten Reasons to Migrate to Bo...

Cristobal Escobar
Cristobal Escobar
September 04, 2026