{"action":"created","issue":{"url":"https://api.github.com/repos/mikechau/sprockets-stats-webpack-plugin/issues/6","repository_url":"https://api.github.com/repos/mikechau/sprockets-stats-webpack-plugin","labels_url":"https://api.github.com/repos/mikechau/sprockets-stats-webpack-plugin/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/mikechau/sprockets-stats-webpack-plugin/issues/6/comments","events_url":"https://api.github.com/repos/mikechau/sprockets-stats-webpack-plugin/issues/6/events","html_url":"https://github.com/mikechau/sprockets-stats-webpack-plugin/pull/6","id":162248532,"number":6,"title":"Configurable logical paths/mappings","user":{"login":"earksiinni","id":5427394,"avatar_url":"https://avatars.githubusercontent.com/u/5427394?v=3","gravatar_id":"","url":"https://api.github.com/users/earksiinni","html_url":"https://github.com/earksiinni","followers_url":"https://api.github.com/users/earksiinni/followers","following_url":"https://api.github.com/users/earksiinni/following{/other_user}","gists_url":"https://api.github.com/users/earksiinni/gists{/gist_id}","starred_url":"https://api.github.com/users/earksiinni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earksiinni/subscriptions","organizations_url":"https://api.github.com/users/earksiinni/orgs","repos_url":"https://api.github.com/users/earksiinni/repos","events_url":"https://api.github.com/users/earksiinni/events{/privacy}","received_events_url":"https://api.github.com/users/earksiinni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-24T23:27:56Z","updated_at":"2016-06-27T17:31:19Z","closed_at":"2016-06-27T15:27:21Z","pull_request":{"url":"https://api.github.com/repos/mikechau/sprockets-stats-webpack-plugin/pulls/6","html_url":"https://github.com/mikechau/sprockets-stats-webpack-plugin/pull/6","diff_url":"https://github.com/mikechau/sprockets-stats-webpack-plugin/pull/6.diff","patch_url":"https://github.com/mikechau/sprockets-stats-webpack-plugin/pull/6.patch"},"body":"I've extended the plugin to accept a `mappings` array in the configuration that allows for a flexible way to rename logical paths:\r\n  * For each asset, first we test its absolute file name against a `test` regex. If it matches, we can proceed with transforming the logical name according to a rule.\r\n  * The `logicalPath` rule uses Webpack's standard placeholders like `[name]` and `[path]`, which in this case operate on the file and path name of the asset's source file (as opposed to its emitted/fingerprinted version).\r\n  * When using the `[path]` placeholder, we can provide a `context`. The resulting `[path]` will be relative to the context path.\r\n\r\nMy change also has the side effect of allowing the user to exclude certain assets from the manifest. If a source file's absolute path doesn't match any regex, its asset won't be included.\r\n\r\nFinally, the new mappings array is optional. If you don't include it, the plugin defaults to the current behavior.\r\n\r\nFixes #5."},"comment":{"url":"https://api.github.com/repos/mikechau/sprockets-stats-webpack-plugin/issues/comments/228815972","html_url":"https://github.com/mikechau/sprockets-stats-webpack-plugin/pull/6#issuecomment-228815972","issue_url":"https://api.github.com/repos/mikechau/sprockets-stats-webpack-plugin/issues/6","id":228815972,"user":{"login":"earksiinni","id":5427394,"avatar_url":"https://avatars.githubusercontent.com/u/5427394?v=3","gravatar_id":"","url":"https://api.github.com/users/earksiinni","html_url":"https://github.com/earksiinni","followers_url":"https://api.github.com/users/earksiinni/followers","following_url":"https://api.github.com/users/earksiinni/following{/other_user}","gists_url":"https://api.github.com/users/earksiinni/gists{/gist_id}","starred_url":"https://api.github.com/users/earksiinni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earksiinni/subscriptions","organizations_url":"https://api.github.com/users/earksiinni/orgs","repos_url":"https://api.github.com/users/earksiinni/repos","events_url":"https://api.github.com/users/earksiinni/events{/privacy}","received_events_url":"https://api.github.com/users/earksiinni/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T17:31:19Z","updated_at":"2016-06-27T17:31:19Z","body":"Great! Thank you. Excited to see this project grow."}}
{"actor":{"display_login":"earksiinni"}}