$ npm run dev工作正常
但$ npm运行生产,虽然它已经工作了几个月,现在却无法识别" / *!"在编译的javascript行的末尾注释掉代码,例如
/*! <- this is the line not being recognised
* Vue.js v2.4.2
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
这一行位于编译行的末尾。它可以通过将其返回到新行来手动修复,但是如何才能将其混合以再次自动化?
错误=
fallbackLoader option has been deprecated - replace with "fallback"
loader option has been deprecated - replace with "use"
10% building modules 7/19 modules 12 active ...ode_modules/style-loader/addStyles.js(node:11800) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
尝试: $ rm rf node_modules&amp;&amp; npm clear cache&amp;&amp; npm install
使用 节点v7.5.0 npm v4.1.2
package.json {
devDependencies mix ^ 0.6.0, &#34; babel-core&#34;:&#34; ^ 6.23.1&#34;, &#34; babel-loader&#34;:&#34; ^ 6.3.2&#34;, &#34; bootstrap-sass&#34;:&#34; ^ 3.3.7&#34;
}
答案 0 :(得分:0)
更新了npm包 最终我认为'npm update vue'修复了它