@ 的作用是在你引入模块时,可以使用 @ 代替 /src 目录,避免书写麻烦又易错的相对路径。

import model from "@/common/model";

// 默认路径代理

    // 例如 import Vue from 'vue',会自动到 'vue/dist/vue.common.js'中寻找

    alias: {

        '@': resolve('src'),

        '@config': resolve('config'),

        'vue$': 'vue/dist/vue.common.js'

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-01-03
  • 2021-07-29
  • 2021-07-15
  • 2021-12-27
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案