vue-cli-plugin-resolve-alias

0.1.3 • Public • Published

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')
      }
    }
  }
}

Package Sidebar

Install

npm i vue-cli-plugin-resolve-alias

Weekly Downloads

104

Version

0.1.3

License

MIT

Unpacked Size

1.97 kB

Total Files

5

Last publish

Collaborators

  • binfong