webpack编译vue出现dev警告

alias配置

vue < 2.1.0

module.exports = {
  ...
  resolve: {
    alias: {
      'vue$': 'vue/dist/vue.js'
    }
  },
  ...
}

vue >= 2.1.0

module.exports = {
  ...
  resolve: {
    alias: {
      'vue$': 'vue/dist/vue.common.js'
    }
  },
  ...
}

 

 

出处:https://stackoverflow.com/questions/41431167/webpack-compiling-vue-with-node-env-production-still-results-in-dev-warning

posted @ 2017-10-24 10:10  全玉  阅读(777)  评论(0编辑  收藏  举报