1

What is it ?

If you have to write: Import Login from '../../views/auth/Login'

Then write like this it also runs: Import Login from '@/views/auth/login'

Please someone can explain...

Tran Hoang Hiep
  • 554
  • 5
  • 12
  • 1
    they are npm packages – Hitmands Apr 23 '17 at 07:08
  • 1
    `"@s/p"` indicates a scoped package. `@s` is a scope and `p` is a package within that scope. Logically, a scope is somewhat like a namespace. – Aluan Haddad Apr 23 '17 at 07:21
  • 1
    thank you. I understood it by webpack Resolve - alias – Tran Hoang Hiep Apr 23 '17 at 07:25
  • 1
    the as duplicate marked post might be correct but have a look at my new answer to it as it's a little different, even though it defines the project root directory the example you posted is importing the Vue component Login.vue and the @ which is defined in your webpack.conf (might be webpack.base.conf) is just convenience ;-) update: just read your newest comment..so you solved it already :D – Can Rau May 30 '17 at 01:08

0 Answers0