diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-05-24 14:56:26 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-05-24 14:56:26 +0900 |
| commit | ceebb84272db3aefc3c11b0182a24b2e3fb127ae (patch) | |
| tree | 2557f3111b3d4293251cef2018519a30bdbd3604 /gulpfile.ts | |
| parent | :v: (diff) | |
| download | sharkey-ceebb84272db3aefc3c11b0182a24b2e3fb127ae.tar.gz sharkey-ceebb84272db3aefc3c11b0182a24b2e3fb127ae.tar.bz2 sharkey-ceebb84272db3aefc3c11b0182a24b2e3fb127ae.zip | |
いい感じに
Diffstat (limited to 'gulpfile.ts')
| -rw-r--r-- | gulpfile.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gulpfile.ts b/gulpfile.ts index 278b20bb12..3399a881b2 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -107,12 +107,16 @@ gulp.task('build:client', [ ]); gulp.task('webpack', done => { - const output = childProcess.execSync( - Path.join('.', 'node_modules', '.bin', 'webpack') + ' --config ./webpack/webpack.config.ts'); + const webpack = childProcess.spawn( + Path.join('.', 'node_modules', '.bin', 'webpack'), + ['--config', './webpack/webpack.config.ts'], { + shell: true + }); - console.log(output.toString()); + webpack.stdout.pipe(process.stdout); + webpack.stderr.pipe(process.stderr); - done(); + webpack.on('exit', done); }); gulp.task('build:client:script', () => |