Git Product home page Git Product logo

Comments (5)

 avatar commented on August 16, 2024

This would apply to stylesheets as well..

from assets-ci.

bstrahija avatar bstrahija commented on August 16, 2024

There's a file in the config folder called "assets_cdn.php", you can define your CDN paths there.

I also added the option base_url in the config so you can have a different URL for your assets. If you leave it at null, the default CI value is used.

Please test this.

from assets-ci.

 avatar commented on August 16, 2024

so you use base_url() to compile the src="" links of local js/css files then?, in which case if i define

$config['base_url'] = 'https://example.com';

then the js/css tags will use that url?

from assets-ci.

bstrahija avatar bstrahija commented on August 16, 2024

By default the CI setting will be used for base_url, but you can override this in the assets config file.

from assets-ci.

 avatar commented on August 16, 2024

Awesome! You da' man! I'd like to submit a bit of update to the docs about this... might provide some clarification for others. Ill fork and have a pull request on branch/develop

from assets-ci.

Related Issues (20)

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.