webpack編譯vue出現dev警告

看風景就發表於2017-10-24

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

相關文章