import组件的时候报错

去webpack.base.js配置

resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('src'),
'components':path.resolve(__dirname,'../src/components'),
'common':path.resolve(__dirname,'../src/common')

}

posted @ 2017-08-12 10:55  layfork  阅读(430)  评论(0编辑  收藏  举报