We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require.config
How can I use this component in require.config? My config is like this:
require.config({ baseUrl: '../libs/', paths: { api: ['api'], jquery: ['jquery.min'], zepto: ['zepto.min'], cache:['cache'] } });
I want to cache api jquery zepto,how can i do that?
api
jquery
zepto
The text was updated successfully, but these errors were encountered:
@MichaelGong You don't define caching in the config; you have to do it in the respective require call. An example based on your config:
require
require(['cache!api'], function(api){ api.doSomething(); });
Sorry, something went wrong.
No branches or pull requests
How can I use this component in
require.config
?My config is like this:
I want to cache
api
jquery
zepto
,how can i do that?The text was updated successfully, but these errors were encountered: