Skip to content

Commit a78dff3

Browse files
authored
Merge pull request #24 from szymonkudzia/master
Bug fix for "undefined reference 'puts'"
2 parents ab59cda + ca63144 commit a78dff3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ var WebpackShellPlugin = function () {
193193
key: 'handleScript',
194194
value: function handleScript(script) {
195195
if (os.platform() === 'win32') {
196-
this.spreadStdoutAndStdErr(exec(script, puts));
196+
this.spreadStdoutAndStdErr(exec(script, this.puts));
197197
} else {
198198
var _serializeScript = this.serializeScript(script),
199199
command = _serializeScript.command,
@@ -273,4 +273,4 @@ var WebpackShellPlugin = function () {
273273
return WebpackShellPlugin;
274274
}();
275275

276-
module.exports = WebpackShellPlugin;
276+
module.exports = WebpackShellPlugin;

src/webpack-shell-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class WebpackShellPlugin {
3838

3939
handleScript(script) {
4040
if (os.platform() === 'win32') {
41-
this.spreadStdoutAndStdErr(exec(script, puts));
41+
this.spreadStdoutAndStdErr(exec(script, this.puts));
4242
} else {
4343
const {command, args} = this.serializeScript(script);
4444
const proc = spawn(command, args, {stdio: 'inherit'});

0 commit comments

Comments
 (0)