Modular JS with gulp-webpack encountered cannotresolve ‘file’ or ‘directory’

  node.js, question

Today, it was the first time to use modular loading, and I encountered a problem. This is the code I introduced.

gulp.task('packjs', function () {
 return gulp.src('./app.js')
 .pipe(named())
 .pipe(webpack({
 output: {
 filename: '[name].js'
 },
 module: {
 loaders: [{
 test: /\.js$/,
 loader: 'imports?  define=>false'
 }]
 },
 devtool: '#eval-source-map'
 }))
 .pipe(uglify())
 .pipe(gulp.dest('app/js'))
 
 });

This is the content in app.js

require('./js/jquery-2.1.4.min.js');
 require('./js/index.js');
 require('./js/common.js');
 require('./js/jquery.rotate.min.js');
 require('./js/jquery.lazyload.js');
 require('./js/jquery.cookie.js');

Remind me图片描述

Did i write it wrong on app.js?

File not foundE:\site\20160519\course-gulp-webpack\app.js
Check if this file exists.