You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return gulp.src('src/assets/js/*/')
// Traces all modules and outputs them in the correct order.
.pipe(amdOptimize("app", {
paths : {
"jquery" : "./bower_components/jquery/dist/jquery"
}
}))
.pipe(concat("app.min.js"))
.pipe(gulp.dest('build/assets/js/build'));
Getting a define is not defined error.
Gulp:
return gulp.src('src/assets/js/*/')
// Traces all modules and outputs them in the correct order.
.pipe(amdOptimize("app", {
paths : {
"jquery" : "./bower_components/jquery/dist/jquery"
}
}))
.pipe(concat("app.min.js"))
.pipe(gulp.dest('build/assets/js/build'));
app.js
require([
'globals'
],function(){});
globals.js
define(['jquery'], function($) {
'use strict';
console.log('hello');
});