添加关闭eslint配置

This commit is contained in:
zhigang.li@tendcloud.com 2018-09-27 10:43:31 +08:00
parent 19a2fca796
commit d74624c94c
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ module.exports = {
baseUrl: BASE_URL, baseUrl: BASE_URL,
// tweak internal webpack configuration. // tweak internal webpack configuration.
// see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md // see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md
// 如果你不需要使用eslint把lintOnSave设为false即可
lintOnSave: true,
chainWebpack: config => { chainWebpack: config => {
config.resolve.alias config.resolve.alias
.set('@', resolve('src')) // key,value自行定义比如.set('@@', resolve('src/components')) .set('@', resolve('src')) // key,value自行定义比如.set('@@', resolve('src/components'))