{"action":"closed","issue":{"url":"https://api.github.com/repos/vueneue/vueneue/issues/55","repository_url":"https://api.github.com/repos/vueneue/vueneue","labels_url":"https://api.github.com/repos/vueneue/vueneue/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/vueneue/vueneue/issues/55/comments","events_url":"https://api.github.com/repos/vueneue/vueneue/issues/55/events","html_url":"https://github.com/vueneue/vueneue/issues/55","id":376754983,"node_id":"MDU6SXNzdWUzNzY3NTQ5ODM=","number":55,"title":"[feature] Separate styles for modern build","user":{"login":"academici","id":3863273,"node_id":"MDQ6VXNlcjM4NjMyNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/3863273?v=4","gravatar_id":"","url":"https://api.github.com/users/academici","html_url":"https://github.com/academici","followers_url":"https://api.github.com/users/academici/followers","following_url":"https://api.github.com/users/academici/following{/other_user}","gists_url":"https://api.github.com/users/academici/gists{/gist_id}","starred_url":"https://api.github.com/users/academici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/academici/subscriptions","organizations_url":"https://api.github.com/users/academici/orgs","repos_url":"https://api.github.com/users/academici/repos","events_url":"https://api.github.com/users/academici/events{/privacy}","received_events_url":"https://api.github.com/users/academici/received_events","type":"User","site_admin":false},"labels":[{"id":1001495542,"node_id":"MDU6TGFiZWwxMDAxNDk1NTQy","url":"https://api.github.com/repos/vueneue/vueneue/labels/enhancement","name":"enhancement","color":"1d76db","default":true},{"id":996810045,"node_id":"MDU6TGFiZWw5OTY4MTAwNDU=","url":"https://api.github.com/repos/vueneue/vueneue/labels/server","name":"server","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-02T10:33:19Z","updated_at":"2018-11-13T14:23:18Z","closed_at":"2018-11-13T14:23:17Z","author_association":"NONE","body":"\"Green browsers\" support attribute \"module\" on tag script, old browsers use scripts with attribute \"nomodule\". But tag link no support \"nomodule\".\r\n### Idea ###\r\n\r\nCreate config option modernBrowsers\r\n```js\r\nmodernBrowsers = [\r\n    'Chrome >= 60',\r\n    'Safari >= 10.1',\r\n    'iOS >= 10.3',\r\n    'Firefox >= 54',\r\n    'Edge >= 15',\r\n  ]\r\n```\r\n\r\nConfigure postcss.config.js\r\n```js\r\nconst isModern = process.env.VUE_CLI_MODERN_MODE && !process.env.VUE_CLI_MODERN_BUILD\r\nlet autoprefixerConfig = {}\r\n\r\nif(isModern) {\r\n  autoprefixerConfig.browsers = modernBrowsers\r\n}\r\n\r\nmodule.exports = {\r\n  plugins: {\r\n    autoprefixer: {\r\n      ...autoprefixerConfig,\r\n    },\r\n  },\r\n};\r\n```\r\nFiles were generated in dist folder and precache-manifest.\r\n\r\nCreate middleware using useragent parser and modernBrowsers option. \r\n\r\nIn html file include needed styles.\r\n\r\nwhat do you think of this idea?\r\n"}}
{"actor":{"display_login":"chymz"}}