学习了:https://segmentfault.com/q/1010000009549802
这个是webpack起的别名;
在build/webpack.base.conf.js中有声明;
resolve: { extensions: [‘.js‘, ‘.vue‘, ‘.json‘], alias: { ‘vue$‘: ‘vue/dist/vue.esm.js‘, ‘@‘: resolve(‘src‘) } },
时间: 2024-11-05 16:53:28
学习了:https://segmentfault.com/q/1010000009549802
这个是webpack起的别名;
在build/webpack.base.conf.js中有声明;
resolve: { extensions: [‘.js‘, ‘.vue‘, ‘.json‘], alias: { ‘vue$‘: ‘vue/dist/vue.esm.js‘, ‘@‘: resolve(‘src‘) } },