This is done with Webpack resolve.alias configuration option and isn't specific to Vue. In Vue Webpack template, Webpack is configured to replace @/ with srcĀ .