I hope Someone can explain me , what's wrong with this code ?
require.config({
shim: {
'eve':{
exports: 'eve'
},
'raphael': {
deps: ['eve', 'jquery']
},
'livicons': {
deps: ['eve']
}
},
paths: {
// Modules
'eve': 'vendor/eve',
'jquery': 'vendor/jquery.min',
'raphael': 'vendor/raphael-min',
'livicons': 'vendor/livicons-demo-1.2.min'
}
});
require( ['eve','livicons'],function(eve){
console.log(eve);
});
console.log(eve) // You are running Eve 0.4.2
but in the livicons file is not defined when it suppose to be load
Update raphael script to "Raphaël 2.1.2" and above.
'eve': {
exports: 'eve'
},
'raphael': {
deps: ['eve', 'jquery']
},
'livicons': {
deps: ['eve', 'raphael','jquery']
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.