Hi Ryan,
though it is not available by default, it doesn't mean it is not possible to implement.
First of all, you'll have to create a custom processor for that (you'll be able to reuse existing processor or implement the new one as a decorator of any other processor).
The custom processor will have to implement ResourcePreProcessor interface, because it will be provided with the information about the resource being processed (which will be used to identify it if belongs to a certain group, though there will be a problem when the same resource belongs to different groups).
When your custom processor will be used as preProcessor - the provided resource should be used to identify the group it belongs to, while when used as a postProcessor - the provided resource is the groupName suffixed with extension of the resourceType being processed (example: if the group is called "myGroup" and the type of the resource processed is "js", then the resourceName will be "myGroup.js").
To identify if a resource belong to a group, you can inject the WroModel to your custom processor and use the WroModelInspector to perform the quesry as in example below:
public class MyCustomProcessor implements ResourcePreProcessor {
@Inject
private final WroModelFactory modelFactory;
public void process(Resource resource, Reader reader, Writer writer) throws IOException {
// custom implementation
WroModel model = modelFactory.create();
Collection<String> groupNames = new WroModelInspector(model).getGroupNamesContainingResource(resource.getUri());
//check if the groupNames contains the group you want to include/exclude....
//Since this processor can be used as postProcessor as well, check if there is a groupName equals to resource.getUri()...
}
I agree that this approach requires some coding and is not very straightforward. But this use case was never required before. You could open an issue (feature request) and it would be implemented at some point in the future (at least it won't be lost).
Thanks,
Alex