vue2.0打包webpack出错

Posted 金在峰

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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出错的主要内容,如果未能解决你的问题,请参考以下文章

webpack打包vue2.0项目时必现问题(转载)

第一章:Nodejs+vue2.0+webpack框架搭建

webpack+vue2.0+nodeJs搭建环境

Vue2.0总结———vue使用过程常见的一些问题

Vue2.0总结———vue使用过程常见的一些问题

vue2.0 代码功能片段