Coder Social home page Coder Social logo

Comments (6)

ssured avatar ssured commented on September 24, 2024

I am having similar needs, have a look in pathprefix branch.

from broccoli-manifest.

ZackMattor avatar ZackMattor commented on September 24, 2024

Hey @ssured, any way we can get this merged in? I have another feature I would like.. but i'll open up a separate issue for that.

from broccoli-manifest.

ssured avatar ssured commented on September 24, 2024

@ZackMattor I am not sure it is ready to merge yet; currently I am not using that code as we cannot get a CDN to work for our scenario; our need is no more. I am curious for what features you want and open for PRs

from broccoli-manifest.

ZackMattor avatar ZackMattor commented on September 24, 2024

I've been using the CDN branch for about a month now and it has been working fine for me :)

I need a way to allow for relative paths for certain builds (basically remove the preluding '/' from each line)

from broccoli-manifest.

krachtstefan avatar krachtstefan commented on September 24, 2024

Great work @ssured! I also tested the pathprefix branch and it works for me.

But there is an issue when using includePathsto add an external resource. Using
includePaths: ['http://fonts.googleapis.com/css?family=Open+Sans:400,700']
ended in
http://my.cdn.url.com/http://fonts.googleapis.com/css?family=Open+Sans:400,700.

But it is possible to fix that when you set pathPrefix as a function:
pathPrefix: function(file){ return file.startsWith("http") ? file : 'http://my.cdn.url.com/'+file; }

from broccoli-manifest.

ssured avatar ssured commented on September 24, 2024

Cool, seems like a nice solution. Can you make a PR?

from broccoli-manifest.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.