Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom name for destination file #46

Open
pinksynth opened this issue Dec 7, 2017 · 2 comments
Open

Allow custom name for destination file #46

pinksynth opened this issue Dec 7, 2017 · 2 comments

Comments

@pinksynth
Copy link

pinksynth commented Dec 7, 2017

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!

@jonycheung
Copy link
Owner

jonycheung commented Dec 9, 2017

@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 jonycheung self-assigned this Dec 9, 2017
@pinksynth
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants