search

Home  >  Q&A  >  body text

node.js - When nodejs loads a module, what does the prefix "@" in the path mean?

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.

巴扎黑巴扎黑2748 days ago665

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-17 09:58:04

    Look at webpack configuration

    reply
    0
  • Cancelreply