Skip to content

Commit

Permalink
Fix windows buffer error
Browse files Browse the repository at this point in the history
On windows, long running development processes cause max buffer error, see 1337programming#65 (1337programming#65)
  • Loading branch information
wayofthefuture authored Jun 5, 2018
1 parent a65ae75 commit fdd1975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webpack-shell-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class WebpackShellPlugin {

handleScript(script) {
if (os.platform() === 'win32' || this.options.safe) {
this.spreadStdoutAndStdErr(exec(script, this.puts));
this.spreadStdoutAndStdErr(exec(script, {maxBuffer: Number.MAX_SAFE_INTEGER}, this.puts));
} else {
const {command, args} = this.serializeScript(script);
const proc = spawn(command, args, {stdio: 'inherit'});
Expand Down

0 comments on commit fdd1975

Please sign in to comment.