{"action":"created","issue":{"url":"https://api.github.com/repos/FormAPI/craco-antd/issues/5","repository_url":"https://api.github.com/repos/FormAPI/craco-antd","labels_url":"https://api.github.com/repos/FormAPI/craco-antd/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/FormAPI/craco-antd/issues/5/comments","events_url":"https://api.github.com/repos/FormAPI/craco-antd/issues/5/events","html_url":"https://github.com/FormAPI/craco-antd/issues/5","id":388037146,"node_id":"MDU6SXNzdWUzODgwMzcxNDY=","number":5,"title":"recompile after editing `.less` files?","user":{"login":"EnixCoda","id":7480839,"node_id":"MDQ6VXNlcjc0ODA4Mzk=","avatar_url":"https://avatars2.githubusercontent.com/u/7480839?v=4","gravatar_id":"","url":"https://api.github.com/users/EnixCoda","html_url":"https://github.com/EnixCoda","followers_url":"https://api.github.com/users/EnixCoda/followers","following_url":"https://api.github.com/users/EnixCoda/following{/other_user}","gists_url":"https://api.github.com/users/EnixCoda/gists{/gist_id}","starred_url":"https://api.github.com/users/EnixCoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnixCoda/subscriptions","organizations_url":"https://api.github.com/users/EnixCoda/orgs","repos_url":"https://api.github.com/users/EnixCoda/repos","events_url":"https://api.github.com/users/EnixCoda/events{/privacy}","received_events_url":"https://api.github.com/users/EnixCoda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-06T03:04:51Z","updated_at":"2018-12-08T14:19:32Z","closed_at":null,"author_association":"NONE","body":"Thank you for this awesome project, It saved me a lot of time!\r\n\r\nI'm using it to configure custom themes for my app and noticed that editing theme's `*.less` file won't trigger webpack's recompilation. I have to restart the webpack process to see the result.\r\n\r\nIs it possible to make recompile for `*.less` files work?\r\n"},"comment":{"url":"https://api.github.com/repos/FormAPI/craco-antd/issues/comments/445462659","html_url":"https://github.com/FormAPI/craco-antd/issues/5#issuecomment-445462659","issue_url":"https://api.github.com/repos/FormAPI/craco-antd/issues/5","id":445462659,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTQ2MjY1OQ==","user":{"login":"ndbroadbent","id":139536,"node_id":"MDQ6VXNlcjEzOTUzNg==","avatar_url":"https://avatars2.githubusercontent.com/u/139536?v=4","gravatar_id":"","url":"https://api.github.com/users/ndbroadbent","html_url":"https://github.com/ndbroadbent","followers_url":"https://api.github.com/users/ndbroadbent/followers","following_url":"https://api.github.com/users/ndbroadbent/following{/other_user}","gists_url":"https://api.github.com/users/ndbroadbent/gists{/gist_id}","starred_url":"https://api.github.com/users/ndbroadbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndbroadbent/subscriptions","organizations_url":"https://api.github.com/users/ndbroadbent/orgs","repos_url":"https://api.github.com/users/ndbroadbent/repos","events_url":"https://api.github.com/users/ndbroadbent/events{/privacy}","received_events_url":"https://api.github.com/users/ndbroadbent/received_events","type":"User","site_admin":false},"created_at":"2018-12-08T14:19:32Z","updated_at":"2018-12-08T14:19:32Z","author_association":"MEMBER","body":"Hi @EnixCoda, sorry for the delay, and that's a great point! Unfortunately these variables are being loaded when webpack starts, and are passed to `less-loader` with the `modifyVars` option. So this is happening at the webpack config level on initialization, and the file is not being loaded dynamically at compile time. But I'm going to take a look at [these webpack compiler hooks](https://webpack.js.org/api/compiler-hooks/), and I might even be able to set up a file watcher and dynamically update the config. Will let you know if I can get that working.\r\n\r\nI also wanted to mention that I've just released version `1.6.0`, which has some important fixes for production builds, and now I'm matching the development/production config from the Sass loader. (See [this craco-less issue](https://github.com/FormAPI/craco-less/issues/2) for more details.)"}}
{"actor":{"display_login":"ndbroadbent"}}