Skip to content
New issue

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

上线时,给amd写法里的模块名打版本号 #4

Closed
holyzfy opened this issue Jun 3, 2015 · 1 comment
Closed

上线时,给amd写法里的模块名打版本号 #4

holyzfy opened this issue Jun 3, 2015 · 1 comment

Comments

@holyzfy
Copy link
Owner

holyzfy commented Jun 3, 2015

build.js

modules值里的name字段

html文件

requirejs或者requre调用的第一个参数

<script>
    requirejs(['path/to/module1', 'module2']);
</script>

data-main

<script data-main="scripts/main" src="scripts/require.js"></script>
@holyzfy
Copy link
Owner Author

holyzfy commented Jun 6, 2015

不用修改模块名,配置paths属性即可

@holyzfy holyzfy closed this as completed Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant