[Sugar-devel] Web activity : adding a library (not AMD-ready).
Manuel Quiñones
manuq at laptop.org
Fri Oct 4 07:04:06 EDT 2013
2013/10/4 laurent bernabe <laurent.bernabe at gmail.com>:
> Hello everyone,
>
> I would like to work with a library that is not AMD-ready inside a web
> activity : http://fabricjs.com/.
> I know that I must put it in the lib folder.
In fabricjs README says it can be build with AMD support
https://github.com/kangax/fabric.js/
And this bug is addressed:
https://github.com/jrburke/requirejs/issues/729
> So, must I add it as a require.js dependency for the application to work
> properly, or must I edit the head section of the index.html ?
This is the RequireJS section you need to read:
http://requirejs.org/docs/api.html#config-shim
> Sorry if my question is not suitable.
Absolutely suitable :)
> Regards
>
>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
--
.. manuq ..
More information about the Sugar-devel
mailing list