我想在使用Bower進行依賴管理和gulp.js進行builingding文件的項目中使用Fuel UI微調器。燃料UI未捕獲ReferenceError:定義未定義
這裏是我的代碼:
gulpfile.js:
...
gulp.task('js', function() {
gulp
.src([
'bower_components/jquery/jquery.js',
...
...
'bower_components/fuelux/dist/loader.min.js',
'bower_components/fuelux/dist/spinner.js',
'js/script.js'
])
...
...
...
...
的script.js
jQuery(document).ready(function($) {
...
$(".qty-spinner").spinner();
...
}
當我這樣做,我得到了以下錯誤:
Uncaught ReferenceError: define is not defined
試圖避免AMD,如果我正在使用Gulp posisble。你可以看到我添加了loader.min.js,它可以在沒有Require的情況下工作。 –
但是定義不應該被其他人使用,對吧? 試着看看你得到的錯誤,並從那裏去。 – AntouanK