Skip to content

Commit 9327112

Browse files
committed
Fix Webpack build issues
1 parent 1cc1bc9 commit 9327112

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gulpfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const gulp = require('gulp');
22
const eslint = require('gulp-eslint');
33
const mocha = require('gulp-mocha');
44
const header = require('gulp-header');
5-
const webpack = require('webpack-stream');
5+
const webpack = require('webpack');
6+
const webpackStream = require('webpack-stream');
67
const scsslint = require('gulp-scss-lint');
78
const sass = require('gulp-sass');
89
const autoprefixer = require('gulp-autoprefixer');
@@ -34,7 +35,7 @@ gulp.task('test', ['test-script-format', 'test-mocha']);
3435

3536
gulp.task('build-script', ['test'], () =>
3637
gulp.src(['./src/index.js'])
37-
.pipe(webpack(webpackConfig))
38+
.pipe(webpackStream(webpackConfig, webpack))
3839
.pipe(header(banner, { pkg }))
3940
.pipe(gulp.dest('./lib/'))
4041
);
@@ -70,7 +71,7 @@ gulp.task('build-examples-style', () =>
7071

7172
gulp.task('build-examples-script', () =>
7273
gulp.src(['./examples/src/index.js'])
73-
.pipe(webpack(testWebpackConfig))
74+
.pipe(webpackStream(testWebpackConfig, webpack))
7475
.pipe(gulp.dest('./examples/dist/'))
7576
.pipe(browserSync.stream())
7677
);

0 commit comments

Comments
 (0)