Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否过滤某些path #8

Open
shepherdwind opened this issue Sep 15, 2014 · 0 comments
Open

能否过滤某些path #8

shepherdwind opened this issue Sep 15, 2014 · 0 comments

Comments

@shepherdwind
Copy link

开发环境下,我自己的包我希望走seajs-wrap,其他已经发布的包,能否直接从线上去数据。

比如本地一个文件,使用了线上的模块,

var Overlay = require('arale-overlay');

这个时候,本地的我会有一个通用的paths配置

  seajs.config({
    paths: {
      local: 'http://127.0.0.1:1337/locals/'
    }
  });

我希望只有local下面的包,走wrap。因为线上的服务器,我不可能运行跨域方式get到,本地的server我可以加Access-Control-Allow-Origin。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant