css replacement in dev mode works for index.html referred by '/'