connect small generator to plug-in EV

Hello
I would like to have a small electric plug-in car, and where I could connect a generator with FlexiFuel stable speed engine when travelling to longer trip. Generator-engine packet could well be connected to rear of the car or to towbar. I would use the generator loading the batteries environmentally friendly when needed and in addition I could use it on my summer cottage or where ever I need 230V electric power for tools etc on my building. When just shopping close the home, i could live the generator pack home and drive just with batteries and without engine powerpacket. Perhaps I could purchase just electric vehicle and loan the powerpack from dealers in case I need more capacity for longer travelling.