At the outbreak of World War I, most of the inhabitants were evacuated to the interior of the Austro-Hungarian Empire.
After the war, in 1918, it was occupied by Italian troops and annexed to Italy in 1920.