{"action":"created","issue":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/349","repository_url":"https://api.github.com/repos/bhauman/lein-figwheel","labels_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/349/comments","events_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/349/events","html_url":"https://github.com/bhauman/lein-figwheel/issues/349","id":136825812,"number":349,"title":"Fully configurable server root","user":{"login":"arichiardi","id":1724788,"avatar_url":"https://avatars.githubusercontent.com/u/1724788?v=3","gravatar_id":"","url":"https://api.github.com/users/arichiardi","html_url":"https://github.com/arichiardi","followers_url":"https://api.github.com/users/arichiardi/followers","following_url":"https://api.github.com/users/arichiardi/following{/other_user}","gists_url":"https://api.github.com/users/arichiardi/gists{/gist_id}","starred_url":"https://api.github.com/users/arichiardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arichiardi/subscriptions","organizations_url":"https://api.github.com/users/arichiardi/orgs","repos_url":"https://api.github.com/users/arichiardi/repos","events_url":"https://api.github.com/users/arichiardi/events{/privacy}","received_events_url":"https://api.github.com/users/arichiardi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-26T21:57:51Z","updated_at":"2016-02-27T07:41:07Z","closed_at":null,"body":"Hey Bruce, I am reporting here a request from Slack that I could take care of myself:\r\n\r\n> let's say I am creating a library, replumb for instance, and I don't want to include in my jar the `resources` folder...what I do is `:resource-paths []` in my `project.clj` root. But now figwhell does not see it anymore. An idea would be to add `:resources-paths` to figwheel. Summoning @bhauman :smile:\r\n> [12:48] \r\n> (maybe there is another more obvious solution but I can't see it now)\r\n\r\nSo I am forced to have my `:resource-paths` empty but at the same time I would like to still use figwheel.\r\nI dug in the code and it boils down to change [this line](https://github.com/bhauman/lein-figwheel/blob/master/sidecar/src/figwheel_sidecar/components/figwheel_server.clj#L111) to something like `(route/files \"/\" {:root (str \"resources/\" http-server-root)})` and of course pass an option.\r\n\r\nTo avoid changing `:http-server-root` semantic we could add the figwheel option `:http-server-path` and read that piece from there.\r\n\r\nI got it almost working already here, would you be open to such a patch?\r\n\r\nPeace!\r\n"},"comment":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/comments/189600826","html_url":"https://github.com/bhauman/lein-figwheel/issues/349#issuecomment-189600826","issue_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/349","id":189600826,"user":{"login":"arichiardi","id":1724788,"avatar_url":"https://avatars.githubusercontent.com/u/1724788?v=3","gravatar_id":"","url":"https://api.github.com/users/arichiardi","html_url":"https://github.com/arichiardi","followers_url":"https://api.github.com/users/arichiardi/followers","following_url":"https://api.github.com/users/arichiardi/following{/other_user}","gists_url":"https://api.github.com/users/arichiardi/gists{/gist_id}","starred_url":"https://api.github.com/users/arichiardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arichiardi/subscriptions","organizations_url":"https://api.github.com/users/arichiardi/orgs","repos_url":"https://api.github.com/users/arichiardi/repos","events_url":"https://api.github.com/users/arichiardi/events{/privacy}","received_events_url":"https://api.github.com/users/arichiardi/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T07:41:07Z","updated_at":"2016-02-27T07:41:07Z","body":"It is exactly my case! If in a case like the one you linked I do not put an explicit `resource-paths []`, my `resources ` finishes in the jar (using either lein uberjar or lein deploy clojars).\r\nI am using leiningen 2.6.1 where they might have changed this. It kind of makes sense, because resource-paths defaults to that folder and if present it will be included in the final artifact.\r\nI will try to add it in `:dev` and see what happens, not sure it is a figwheel issue. Nonetheless I guess the patch was needed by a lot of people and I decided to push it.\r\n\r\nBy the way the validation stuff in `0.5.1-SNAPSHOT` is pretty neat!"}}