{"action":"created","issue":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/5958","repository_url":"https://api.github.com/repos/Dogfalo/materialize","labels_url":"https://api.github.com/repos/Dogfalo/materialize/issues/5958/labels{/name}","comments_url":"https://api.github.com/repos/Dogfalo/materialize/issues/5958/comments","events_url":"https://api.github.com/repos/Dogfalo/materialize/issues/5958/events","html_url":"https://github.com/Dogfalo/materialize/issues/5958","id":328125098,"node_id":"MDU6SXNzdWUzMjgxMjUwOTg=","number":5958,"title":"Use Materialize as modular components","user":{"login":"geosenna","id":6083654,"node_id":"MDQ6VXNlcjYwODM2NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6083654?v=4","gravatar_id":"","url":"https://api.github.com/users/geosenna","html_url":"https://github.com/geosenna","followers_url":"https://api.github.com/users/geosenna/followers","following_url":"https://api.github.com/users/geosenna/following{/other_user}","gists_url":"https://api.github.com/users/geosenna/gists{/gist_id}","starred_url":"https://api.github.com/users/geosenna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geosenna/subscriptions","organizations_url":"https://api.github.com/users/geosenna/orgs","repos_url":"https://api.github.com/users/geosenna/repos","events_url":"https://api.github.com/users/geosenna/events{/privacy}","received_events_url":"https://api.github.com/users/geosenna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-05-31T12:49:30Z","updated_at":"2018-07-24T13:13:16Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have a lot of issue to have materialize working as modular component. I don't want to have to load the entire JS library (almost 200KB) but only some components.\r\n\r\nI was used to Foundation, which was working very simply. But with Materialize, everytime I want to add some component, it is long process to find which component need which dependency.\r\n\r\nFor example the Modal component\r\n\r\n`import 'materialize-css/js/modal';`\r\n\r\nThen I got the error Cash is not defined, so:\r\n\r\n`import 'materialize-css/js/cash';`\r\n`import 'materialize-css/js/modal';`\r\n\r\nThen I got the Component is not defined, so again:\r\n\r\n`import 'materialize-css/js/component';`\r\n`import 'materialize-css/js/cash';`\r\n`import 'materialize-css/js/modal';`\r\n\r\nBut here, I am still getting the issue.\r\n\r\nI know several issues have already been reported, but none of them has been abe to help me so far...\r\n\r\nIs there (probably) a better to achieve what I am trying to do? \r\n\r\nI can't find a dependency documentation, which will list all module interdependency. Is this plan?\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/comments/407401494","html_url":"https://github.com/Dogfalo/materialize/issues/5958#issuecomment-407401494","issue_url":"https://api.github.com/repos/Dogfalo/materialize/issues/5958","id":407401494,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzQwMTQ5NA==","user":{"login":"geosenna","id":6083654,"node_id":"MDQ6VXNlcjYwODM2NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6083654?v=4","gravatar_id":"","url":"https://api.github.com/users/geosenna","html_url":"https://github.com/geosenna","followers_url":"https://api.github.com/users/geosenna/followers","following_url":"https://api.github.com/users/geosenna/following{/other_user}","gists_url":"https://api.github.com/users/geosenna/gists{/gist_id}","starred_url":"https://api.github.com/users/geosenna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geosenna/subscriptions","organizations_url":"https://api.github.com/users/geosenna/orgs","repos_url":"https://api.github.com/users/geosenna/repos","events_url":"https://api.github.com/users/geosenna/events{/privacy}","received_events_url":"https://api.github.com/users/geosenna/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T13:13:16Z","updated_at":"2018-07-24T13:13:16Z","author_association":"NONE","body":"I am really struggling with this... Is anyone succeed to using both Webpack and Materialize Modal?"}}
{"actor":{"display_login":"geosenna"}}