RequireJS: Is there a way to achieve multiple base URLs?

后端 未结 4 2107
北恋
北恋 2020-12-12 17:35

I want to use a separate domain as a JavaScript framework and it will create a base require config which I can augment from the app.

foo.example.com
    main         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 18:07

    requirejs multiversion

    TRY this

    context: A name to give to a loading context. This allows require.js to load multiple versions of modules in a page, as long as each top-level require call specifies a unique context string. To use it correctly, see the Multiversion Support section.

提交回复
热议问题