{"action":"opened","issue":{"url":"https://api.github.com/repos/ant-tool/atool-build/issues/16","labels_url":"https://api.github.com/repos/ant-tool/atool-build/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ant-tool/atool-build/issues/16/comments","events_url":"https://api.github.com/repos/ant-tool/atool-build/issues/16/events","html_url":"https://github.com/ant-tool/atool-build/issues/16","id":121175976,"number":16,"title":"map.json 的值里添加 pkg.name","user":{"login":"sorrycc","id":35128,"avatar_url":"https://avatars.githubusercontent.com/u/35128?v=3","gravatar_id":"","url":"https://api.github.com/users/sorrycc","html_url":"https://github.com/sorrycc","followers_url":"https://api.github.com/users/sorrycc/followers","following_url":"https://api.github.com/users/sorrycc/following{/other_user}","gists_url":"https://api.github.com/users/sorrycc/gists{/gist_id}","starred_url":"https://api.github.com/users/sorrycc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorrycc/subscriptions","organizations_url":"https://api.github.com/users/sorrycc/orgs","repos_url":"https://api.github.com/users/sorrycc/repos","events_url":"https://api.github.com/users/sorrycc/events{/privacy}","received_events_url":"https://api.github.com/users/sorrycc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-09T06:58:03Z","updated_at":"2015-12-09T06:58:03Z","closed_at":null,"body":"慕陶的需求，map.json 现在是：\r\n\r\n```javascript\r\n{\r\n  \"common.js\": \"common-{hash}.js\",\r\n}\r\n```\r\n\r\n需要改成：\r\n\r\n```javascript\r\n{\r\n  \"common.js\": \"{pkg.name}/common-{hash}.js\",\r\n}\r\n```\r\n\r\nhttps://github.com/yiminghe/map-json-webpack-plugin/blob/master/index.js#L7\r\n"}}