{"action":"created","issue":{"url":"https://api.github.com/repos/fex-team/fis3/issues/496","labels_url":"https://api.github.com/repos/fex-team/fis3/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/fis3/issues/496/comments","events_url":"https://api.github.com/repos/fex-team/fis3/issues/496/events","html_url":"https://github.com/fex-team/fis3/issues/496","id":122734177,"number":496,"title":"关于本地引用es5-shim的路径问题","user":{"login":"codering","id":2271825,"avatar_url":"https://avatars.githubusercontent.com/u/2271825?v=3","gravatar_id":"","url":"https://api.github.com/users/codering","html_url":"https://github.com/codering","followers_url":"https://api.github.com/users/codering/followers","following_url":"https://api.github.com/users/codering/following{/other_user}","gists_url":"https://api.github.com/users/codering/gists{/gist_id}","starred_url":"https://api.github.com/users/codering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codering/subscriptions","organizations_url":"https://api.github.com/users/codering/orgs","repos_url":"https://api.github.com/users/codering/repos","events_url":"https://api.github.com/users/codering/events{/privacy}","received_events_url":"https://api.github.com/users/codering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-17T13:26:05Z","updated_at":"2015-12-21T04:20:11Z","closed_at":null,"body":"```js\r\n  <!--[if lt IE 9]>\r\n  <script src=\"/static/libs/es5-shim/4.4.1/es5-shim.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n  <![endif]-->\r\n```\r\nfis3编译后，路径并不会发生变化。这种情况怎么处理好？"},"comment":{"url":"https://api.github.com/repos/fex-team/fis3/issues/comments/166200044","html_url":"https://github.com/fex-team/fis3/issues/496#issuecomment-166200044","issue_url":"https://api.github.com/repos/fex-team/fis3/issues/496","id":166200044,"user":{"login":"2betop","id":2698393,"avatar_url":"https://avatars.githubusercontent.com/u/2698393?v=3","gravatar_id":"","url":"https://api.github.com/users/2betop","html_url":"https://github.com/2betop","followers_url":"https://api.github.com/users/2betop/followers","following_url":"https://api.github.com/users/2betop/following{/other_user}","gists_url":"https://api.github.com/users/2betop/gists{/gist_id}","starred_url":"https://api.github.com/users/2betop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2betop/subscriptions","organizations_url":"https://api.github.com/users/2betop/orgs","repos_url":"https://api.github.com/users/2betop/repos","events_url":"https://api.github.com/users/2betop/events{/privacy}","received_events_url":"https://api.github.com/users/2betop/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T04:20:11Z","updated_at":"2015-12-21T04:20:11Z","body":"通过自定义的流程的方式先解决这个问题吧。\r\n\r\n```js\r\nfis.match('*.html', {\r\n  preprocessor: fis.plugin(function(content, file) {\r\n    var lang = fis.compile.lang;\r\n\r\n    return content.replace(/<script([^>]*)src=('|\")(.+?)\\2([^>]*)>/ig, function(_, prefix, quote, value, affix) {\r\n      return '<script' + prefix + 'src=' + quote + lang.uri.wrap(value) + quote + affix + '>';\r\n    });\r\n  })\r\n})\r\n```"}}