Ребята, помогите, в трех соснах потерялся)!!! Не могу понять почему появляется ошибка в GULPe - webpack-stream - No files given; aborting compilation?!!
gulpfile.js
'use strict';
const gulp = require('gulp');
const webpack = require('webpack-stream');
const browsersync = require('browser-sync');
gulp.task('build', function () {
return gulp.src('src/js/main.js')
.pipe(webpack())
.pipe(gulp.dest('./dist/'))
.on('end', browsersync.reload);
});
Файл main.js находиться в App/src/js/main.js
=================
package.json
"devDependencies": {
"@babel/core": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"babel": "^6.23.0",
"babel-core": "^6.26.3",
"babel-loader": "^8.0.6",
"browser-sync": "^2.26.7",
"core-js": "^3.4.2",
"gulp": "^4.0.2",
"webpack": "^4.41.2",
"webpack-stream": "^5.2.1"
},
"dependencies": {
"jquery": "^3.4.1",
"slick-carousel": "^1.8.1"
}
==========================
Терминал
Starting 'build'...
webpack-stream - No files given; aborting compilation
Finished 'build' after 209 ms