Giter Site home page Giter Site logo

Requirejs relative paths about famous HOT 3 CLOSED

famous avatar famous commented on May 29, 2024
Requirejs relative paths

from famous.

Comments (3)

marcvdm avatar marcvdm commented on May 29, 2024

after allot of searching online i found that you can set the path to famous in the require config. so this actually fixes my problem.

require.config({
    paths: {
        famous: './vendor/famous'
    }
});

But maybe it's still better for dependencies to load relatively from the file that is requiring the dependency

from famous.

MylesBorins avatar MylesBorins commented on May 29, 2024

Marc. If you take a look at our yeoman generator you will see that we use a
require js config to put all required vendor code I'm a specific file. We
also use a grunt task to automatically add paths to any bower installed
vendor libs
On Apr 20, 2014 4:10 AM, "Marc van der Meulen" [email protected]
wrote:

after allot of searching online i found that you can set the path to
famous in the require config. so this actually fixes my problem.

require.config({
paths: {
famous: './vendor/famous'
}});

But maybe it's still better for dependencies to load relatively from the
file that is requiring the dependency


Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-40892708
.

from famous.

MylesBorins avatar MylesBorins commented on May 29, 2024

@marcvdm I'm going to close this issue for right now but feel free to keep the discussion happening.

Part of the architectural decision here regarding non relative paths is that the library is going to eventually be modularized and deployed via a custom package manager. I highly suggest taking a look at the yeoman generator as a way to start famous projects, although I completely understand if you think that tool chain is not for you.

from famous.

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.