deadsimple-less-watch-compiler
deadsimple-less-watch-compiler copied to clipboard
Allow custom name for destination file
I feel like there is already a way to do this but I'm not sure of it:
It would be great if a custom output name were possible. For instance:
less-watch-compiler src dist main.less main.min.css would produce main.min.css instead of main.css.
Thank you!
@pinksynth There currently isn't a way. And this prompted me in thinking that adding ".min" automatically if you passed a minified flag actually doesn't make sense. Not to mention that the '--minified` flag is missing.
If I changed to the following, would that be helpful?
less-watch-compiler --minified src dist main.less will output dist/main.css instead of dist/main.min.css
Good question about the --minified -> .min thing, I would guess that most people prefer it the way it is. On Monday I’ll run two watches concurrently, one with the flag, and see if they give me what I need. My company’s asset pipeline is a little older so every Less compile of ours is intended to have an unminified version and a minified version, instead of using dev/prod environments. Thanks for your time!