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
var $ = require('$'); var Handlebars = require('cmd/handlebars/2.0.0/handlebars');
a.js
"options": { "alias": { "$": "lib/jquery/1.11.1/jquery", "cmd": "lib/cmd-plugins/" } }
packpage.json
请问,我这边 require('cmd/handlebars/2.0.0/handlebars'); 这里的cmd能被别名替换么?或者有什么像seajs一样有path的配置项?
The text was updated successfully, but these errors were encountered:
没有,为何不直接 require('handlebars')
require('handlebars')
Sorry, something went wrong.
seajs.config({ paths: { 'cmd': 'lib/cmd-plugins' }
seajs.config
是这个情况,我可能seajs那边会有这个path配置,正常use这个a.js没问题。(有类似很多的js使用了这个path变量) 然后我想通过这个transports插件来批量添加id和依赖。
No branches or pull requests
a.js
packpage.json
请问,我这边 require('cmd/handlebars/2.0.0/handlebars'); 这里的cmd能被别名替换么?或者有什么像seajs一样有path的配置项?
The text was updated successfully, but these errors were encountered: