1

I have lots of .less files in my solution, one per page.

I want to add a build step that quickly runs through my solution and puts all the files ending in .less into one massive .less file.

I've not found anything that specifically does this via google. I don't want to compile to CSS, at least not at this point.

Is there a tool out there that will do this? Or should I write one myself?

NibblyPig
  • 51,118
  • 72
  • 200
  • 356

1 Answers1

2

you can run a powershell script in a postbuildevent:

ls d:\temp\ -r -i *.less| gc | sc -enc UTF8 d:\temp\allless.less
  • d:\temp\ is your root solution folder
  • d:\temp\allless.less the resulting file
Community
  • 1
  • 1
giammin
  • 18,620
  • 8
  • 71
  • 89