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

can't used for requirejs when data-main use main, no .js #21

Open
donnyco opened this issue Aug 20, 2013 · 0 comments
Open

can't used for requirejs when data-main use main, no .js #21

donnyco opened this issue Aug 20, 2013 · 0 comments

Comments

@donnyco
Copy link

donnyco commented Aug 20, 2013

var regrequirejs = new RegExp(/<script.\bdata-main='"['"]./?>/ig);

function html(content, filename, relativeTo) {
var self = this;
content = content.replace(reghtml, function(match, resource) {
return match.replace(resource, cdnUrl.call(self, resource, filename, relativeTo));
});
return content.replace(regrequirejs, function(match, resource) {
return match.replace(resource, cdnUrl.call(self, resource, filename, relativeTo));
});
};

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