{"action":"created","issue":{"url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-assetpack/issues/59","labels_url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-assetpack/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-assetpack/issues/59/comments","events_url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-assetpack/issues/59/events","html_url":"https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues/59","id":99894004,"number":59,"title":"Make AssetPack modules optional in production","user":{"login":"jhthorsen","id":45729,"avatar_url":"https://avatars.githubusercontent.com/u/45729?v=3","gravatar_id":"","url":"https://api.github.com/users/jhthorsen","html_url":"https://github.com/jhthorsen","followers_url":"https://api.github.com/users/jhthorsen/followers","following_url":"https://api.github.com/users/jhthorsen/following{/other_user}","gists_url":"https://api.github.com/users/jhthorsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhthorsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhthorsen/subscriptions","organizations_url":"https://api.github.com/users/jhthorsen/orgs","repos_url":"https://api.github.com/users/jhthorsen/repos","events_url":"https://api.github.com/users/jhthorsen/events{/privacy}","received_events_url":"https://api.github.com/users/jhthorsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-assetpack/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-assetpack/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"jhthorsen","id":45729,"avatar_url":"https://avatars.githubusercontent.com/u/45729?v=3","gravatar_id":"","url":"https://api.github.com/users/jhthorsen","html_url":"https://github.com/jhthorsen","followers_url":"https://api.github.com/users/jhthorsen/followers","following_url":"https://api.github.com/users/jhthorsen/following{/other_user}","gists_url":"https://api.github.com/users/jhthorsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhthorsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhthorsen/subscriptions","organizations_url":"https://api.github.com/users/jhthorsen/orgs","repos_url":"https://api.github.com/users/jhthorsen/repos","events_url":"https://api.github.com/users/jhthorsen/events{/privacy}","received_events_url":"https://api.github.com/users/jhthorsen/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-08-09T12:46:13Z","updated_at":"2015-08-29T16:10:55Z","closed_at":null,"body":"Would be very cool if the people who run the application didn't require the same amount of dependencies as the developers. In the code below, only the AssetPack plugin is really required for production. (Or maybe not even AssetPack..?) Riotjs, FontAwesome4 and Bootstrap3 only contains the input files required to make the packed files.\r\n\r\n```\r\n  $self->plugin('AssetPack', {source_paths => ['assets'], proxy => 'detect'});\r\n  $self->plugin('Riotjs');\r\n  $self->plugin('FontAwesome4', {css => []});\r\n  $ENV{SASS_PATH} = Mojolicious::Plugin::FontAwesome4->asset_path('sass');\r\n  $self->plugin('Bootstrap3');\r\n```\r\n\r\nMaybe it could be possible to make AssetPack load the other plugins, but only if the packed file doesn't already exists?"},"comment":{"url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-assetpack/issues/comments/136005668","html_url":"https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues/59#issuecomment-136005668","issue_url":"https://api.github.com/repos/jhthorsen/mojolicious-plugin-assetpack/issues/59","id":136005668,"user":{"login":"zoffixznet","id":5747918,"avatar_url":"https://avatars.githubusercontent.com/u/5747918?v=3","gravatar_id":"","url":"https://api.github.com/users/zoffixznet","html_url":"https://github.com/zoffixznet","followers_url":"https://api.github.com/users/zoffixznet/followers","following_url":"https://api.github.com/users/zoffixznet/following{/other_user}","gists_url":"https://api.github.com/users/zoffixznet/gists{/gist_id}","starred_url":"https://api.github.com/users/zoffixznet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoffixznet/subscriptions","organizations_url":"https://api.github.com/users/zoffixznet/orgs","repos_url":"https://api.github.com/users/zoffixznet/repos","events_url":"https://api.github.com/users/zoffixznet/events{/privacy}","received_events_url":"https://api.github.com/users/zoffixznet/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T16:10:55Z","updated_at":"2015-08-29T16:10:55Z","body":"> So do you think it's worth continuing on d56b71a?\r\n> Does the documentation for d56b71a make sense? (never mind all the typos, haha)\r\nYeah, looks decent to me and documentation does make sense.\r\n\r\n> Do you think it would be even more useful to have a \"shim\", so you don't even need assetpack?\r\nDon't know. Would that avoid requiring something that isn't readily available from CPAN and can be packaged with the app? I see some `::XS` modules as prereqs to `AssetPack`. Would having a shim allow for installing a hypothetical Mojolicious app on a box that doesn't have a C compiler? I think I'm entirely neutral on the idea of a shim: neither love it nor hate it :smile_cat: \r\n\r\n\r\nNot sure in what direction to take this now."}}