The impact of star formation on the interstellar medium in dwarf galaxies