-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workbox-webpack-plugin: webpack --json hangs #1367
Comments
Same here, hangs at new WorkboxPlugin.GenerateSW({
swDest: join(options.outputPath, 'sw.js'),
clientsClaim: true,
skipWaiting: true
}) Same versions of webpack and EDIT: To reproduce, check this repo (it's not minimal though).
|
Re: @klinki, does removing the Re: @freezy, $ git clone https://github.com/vpdb/website
$ cd website && git checkout workbox3
$ npm install && npm run build:prod completes without issue for me. (Testing on OS X, using node v9.8.0.) Are you seeing this 100% of the time, or just periodically? And which operating system are you using? |
Running on Windows 10 x64, node 8.5.0, tried around 10 times, always hangs. Also tried removing all options but the three mentioned above with the same result. I've also tried with a fresh clone / npm install. |
Okay, it might be a Windows thing. That's a lead, at least. |
Or a node thing. :) |
@freezy, the issue you're seeing is because you're using a full Windows absolute path for
As a fix for now, you could just pass in a path that's relative to the webpack output directory. So, something like I'd imagine we can just fix that by using, e.g., |
@jeffposnick thanks for your investigations, really appreciated! Your suggestion works well and there isn't really a reason for using absolute path names, I don't even remember why I did it this way. I'll have a look at a repro repo tonight if nobody beats me to it. Cheers! |
Following over from the comment i had on the other issue: Yep - im windows too Dont work
Do work
Thanks for the workaround |
@jeffposnick I'm also on windows. Update: It works, I set Thanks @jeffposnick ! |
Library Affected:
workbox-webpack-plugin.
Browser & Platform:
Webpack 4.1.1, workbox-webpack-plugin 3.0.0
Issue or Feature Request Description:
When I run
webpack --mode production --json
it hangs infinitely.After I remove
from
webpack.config.js
, it works.The text was updated successfully, but these errors were encountered: