0.1.3 • Published 5 years ago

vue-cli-plugin-resolve-alias v0.1.3

Weekly downloads
211
License
MIT
Repository
-
Last release
5 years ago

Vue-CLi-Plugin-Resolve-Alias

A Vue-Cli-Plugin for set up resolve alias by using vue.config.js.

Install

vue add resolve-alias

Example

In your vue.config.js:

const path = require('path')

module.exports = {
  pluginOptions: {
    'resolve-alias': {
      alias: {
        // just like a normal resolve in Webpack
        src: path.resolve(__dirname, './src'),
        common: path.resolve(__dirname, './src/common')
        components: path.resolve(__dirname, './src/components')
      }
    }
  }
}