Open altano opened 11 years ago
I looked through the source: it looks like 'flatten' just has to be true or relative URLs are skipped. I'm really confused as that doesn't make sense to me.
Also, options.stripDirs and options.match aren't documented, despite the latter being pretty important. Can I count on them sticking around? If so, maybe I'll document them for you...
URLs that get CDNified (by default) are those relative. However you can use stripeDirs we'll keep it around as long as you're using it =)
URLs that get CDNified (by default) are those relative
Can you give me an example URL that will get CDNified with the default options?
Sorry, it seems to be a bug there. /static/foo.png should be cdnefied.
I'll check later, if you find the offending line you're welcome to send a PR =). We'll take a look too.
On Sat, Jul 6, 2013 at 8:15 PM, Alan notifications@github.com wrote:
URLs that get CDNified (by default) are those relative
Can you give me an example URL that will get CDNified with the default options?
— Reply to this email directly or view it on GitHubhttps://github.com/tactivos/grunt-cdn/issues/18#issuecomment-20562731 .
grunt-cdn.js:104 is the offending line:
if (!options.flatten && !grunt.file.isPathAbsolute(resourceUrl.pathname)) {
I would send you a fix but I don't really understand how options.flatten is supposed to work.
Either plugin doesn't work or I'm really confused:
What is an absolute URL then? The documentation makes it sound like these URLs are absolute and they should be processed. What am I missing?