Smart package that output less

Is it possible to create a smart package that outputs less and not css? From the doc it sounds like no since step 3 doesn’t do that.

My problem: I want to use spritesmith to bundle icons together and output a bunch of less variables that are then available to less mixins, and will later get compiles to css by the normal build process.