首页 > 代码库 > vue2.0打包webpack出错

vue2.0打包webpack出错

(node:8628) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.

相关文章 

https://segmentfault.com/q/1010000008770124

https://github.com/vuejs/vue-loader/issues/666

最终解决办法

  process.noDeprecation = true

you need update:dev-server .js

var config = require(‘../config‘)
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
process.noDeprecation = true
}

vue2.0打包webpack出错