webpack挂在“95%发射”上/“95%发射” [英] webpack hangs at on "95% emit" / "95% emitting"

查看:100
本文介绍了webpack挂在“95%发射”上/“95%发射”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的生产webpack配置。标题中的两个引号分别表示webpack2和webpack。两者都有类似的错误。

This is my production webpack config. The two quotes in the title refer to webpack2 and webpack respectively. Both hang for me with a similar error.

这是我触发构建的命令

设置NODE_ENV =生产&& webpack --config config / webpack.config.prod.js --progress --display-error-details

我缺少什么?

这是运行 npm run pack 之后的输出,它与我的生产webpack构建相关:

Here is the output after running npm run pack which correlates to my production webpack build:

$ npm run pack

> somedir@ pack C:\somedir
> set NODE_ENV=production && webpack --config config/webpack.config.prod.js --progress --display-error-details
                           95% emitting


推荐答案

所以我想出来了。事实证明我包括我的输出路径中的保留字符。我已经在github上打开了一个问题

So I figured this out. It turns out I was including reserved characters in my output path. I've since opened an issue on github.


在output.path中使用无效或保留字符时,webpack
将挂起而没有输出。使用--progress标志运行将显示
,它挂在95%emit(ting)(后缀取决于webpack
版本)。

When using an invalid or reserved character in the output.path webpack will hang with no output. Running with the --progress flag will show that it's hanging on 95% emit(ting) (suffix depending on webpack version).

这篇关于webpack挂在“95%发射”上/“95%发射”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆