node在编译vue的时候出现格式错误:
http://eslint.org/docs/rules/eol-last
解决方法就是找到bulid/webpack.base.conf.js里面的
{
test: /.(js|vue)$/,
loader: 'eslint-loader',
enforce: "pre",
include: [resolve('src'), resolve('test')],
options: {
formatter: require('eslint-friendly-formatter')
}
},
这段注释掉就可以了,当然格式还是比较重要,