Open kuangrs opened 7 years ago
project structure
gulfile.js
gulp.task('base', function () { return amdOptimize.src('./js/init') .pipe(concat('base.js')) .pipe(gulpif(con, uglify())) .pipe(gulp.dest('./js/dist')); });
./js/init.js
require.config({ "paths": { 'Datepicker':'modules/datepicker', 'PopUpBox':'modules/popupbox' } }); require(['Datepicker', 'PopUpBox'], function(){ console.log('hello'); });
wrong message when executing gulpfile.js
project structure
gulfile.js
./js/init.js
wrong message when executing gulpfile.js