vue2.0打包webpack出錯
阿新 • • 發佈:2017-07-24
rec load see ebp iss utils which mat process
(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出錯