-
Notifications
You must be signed in to change notification settings - Fork 17
Specify --output parameter as a folder, when using --batch #65
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
Comments
Hey @alexejibishvili - I think we could do this. Question: when |
Glad to see your positive feedback. You are right, in the output folder, source folders/subfolders should be created/copied accordingly. In my opinion, this upgrade will be helpful for users. I'm a new user of clean-css-cli. Generally I work on backend, not frontend. --batch compiling > GOOD This will be helpful in scenario, where I want to minify css with --batch param, but I don't want to merge all of it in one file, but copy to dist all one by one. In order to achieve this, now you need to have one more line of npm command for copying these files. Hope my opinion is clear and logical. |
It is, thanks for valuable input! I wonder what's the more useful case here: make it repeat folder structure by default or not. If people have any relative URLs in CSS then repeating it makes sense to them. Thoughts? |
You are completely right about relative URLs. I didn't mention it. |
Agreed. Personally, would you use the option to output all files in a root folder specified by My thinking is we should not have features people don't use, so if you won't, then I'd go implementing "repeating folder structure" under |
I was trying to do this exact same thing this morning. I would love to see this feature implemented. Thank you for considering it.
Intuitively I expected the command above to duplicate the entire folder structure (where CSS is found) of source/ to dist/ Sidenote
Running it without --batch-suffix results in files being created in place under source/ |
@alexejibishvili @jasonreiche this feature is already on main branch, and I want to release it in version 5.3 later this week. Also @jasonreiche - I'm opening your sidenote as a separate issue. |
Hello!
Can I have --output parameter specified as a folder while --batch param is present?
I want to get minified css files one by one (as --batch param does) in some other folder. But in default manner, minified files are generated at same path as source files.
I'd like to run script with --batch param and have --output /some/folder (not file).
I know I can just copy minified files to any other folder with another script, but maybe my point of view is not so bad?
Thanks in advance for your information, advices and opinions!
The text was updated successfully, but these errors were encountered: