deadsimple-less-watch-compiler icon indicating copy to clipboard operation
deadsimple-less-watch-compiler copied to clipboard

Allow custom name for destination file

Open pinksynth opened this issue 7 years ago • 2 comments
trafficstars

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 avatar Dec 07 '17 16:12 pinksynth

@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

jonycheung avatar Dec 09 '17 12:12 jonycheung

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!

pinksynth avatar Dec 09 '17 18:12 pinksynth