node.js - When nodejs loads a module, what does the prefix "@" in the path mean?
巴扎黑
巴扎黑 2017-05-17 09:56:04
0
1
617

Example:

import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    }
  ]
})

Among them, what does @ in import Hello from '@/components/Hello' mean?

In addition, where is the document for loading specifications? I searched for a long time but couldn't find it.

巴扎黑
巴扎黑

reply all(1)
世界只因有你

Look at webpack configuration

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!