Police have launched an investigation into an explosion at a caravan in West Yorkshire.