support single file optimize with define style.