Add defineSrc, use replace-ext