编辑本随笔
alias路径别名
需要使用path方法
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': path.resolve(__dirname, 'src')
},
extensions: ['*', '.js', '.vue', '.json']
}
标签:__,resolve,webpack3,配置,js,alias,vue,path
来源: https://www.cnblogs.com/yaya625202/p/12706944.html