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

How to integrate with CDN (Add CDN prefix to the target js file path)? #15

Open
Jeff-Tian opened this issue Sep 23, 2015 · 0 comments
Open

Comments

@Jeff-Tian
Copy link

I have some js file and I want to serve it to my project path: /js/account-settings.xxx.js, at the same time I want to use CDN for it, say //www.cdn-xxx.com/js/account-settings.xxx.js. How can I append the cdn prefix to the build:js comment?

I tried the below code, but it generated the js file to my project path: /www.cdn-xxx.com/js/account-settings.xxx.js

<!-- build:js //www.cdn-xxx.com/js/account-settings.<%= grunt.file.readJSON('package.json').version %>.js -->
<script src="js/directives/captcha.js"></script>
<script src="js/directives/ngEnter.js"></script>
<script src="js/directives/registerForm.js"></script>
<script src="js/directives/tab.js"></script>
<script src="js/controllers/LoginCtrl.js"></script>
<script src="js/controllers/SignUpCtrl.js"></script>
<script src="js/page/account-setting/main.js"></script>
<!-- endbuild -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant