guybedford / require-css

A RequireJS CSS loader plugin to allow CSS requires and optimization
MIT License
983 stars 364 forks source link

req.toUrl is undefined #209

Open crixusshen opened 8 years ago

crixusshen commented 8 years ago

hi, I used almond, but I encountered a problem.

cssAPI.load = function(cssId, req, load, config) {

(useImportLoad ? importLoad : linkLoad)(req.toUrl(cssId + '.css'), load);

}

Now, toUrl of req.toUrl is undefined, Why???

crixusshen commented 8 years ago

require.js is contain method of toUrl, but almond.js is not contain method of toUrl. Then I should how to support almond

alundiak commented 7 years ago

@crixusshen I see PRs #164 #185 are related to toUrl() and I will review and potentially merge PR. And later on, I will update this issue as well. Please reply if u have some fresh issues/notes or any relevant info.