{"action":"created","issue":{"url":"https://api.github.com/repos/fex-team/fis/issues/280","labels_url":"https://api.github.com/repos/fex-team/fis/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/fis/issues/280/comments","events_url":"https://api.github.com/repos/fex-team/fis/issues/280/events","html_url":"https://github.com/fex-team/fis/issues/280","id":54147663,"number":280,"title":"有什么可以提高构建速度的良方?","user":{"login":"atomicmm","id":5791094,"avatar_url":"https://avatars.githubusercontent.com/u/5791094?v=3","gravatar_id":"","url":"https://api.github.com/users/atomicmm","html_url":"https://github.com/atomicmm","followers_url":"https://api.github.com/users/atomicmm/followers","following_url":"https://api.github.com/users/atomicmm/following{/other_user}","gists_url":"https://api.github.com/users/atomicmm/gists{/gist_id}","starred_url":"https://api.github.com/users/atomicmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomicmm/subscriptions","organizations_url":"https://api.github.com/users/atomicmm/orgs","repos_url":"https://api.github.com/users/atomicmm/repos","events_url":"https://api.github.com/users/atomicmm/events{/privacy}","received_events_url":"https://api.github.com/users/atomicmm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-13T03:44:19Z","updated_at":"2015-01-13T03:48:03Z","closed_at":null,"body":"辛苦研究了几天,终于初步掌握了fis的构建,现在剩下最后一个问题了,请同学们解答\r\n\r\n我的部署脚本为\r\n```javascript\r\nfis release -opwL --dest local_deploy //发布到本地的php部署服务上\r\n```\r\n主要进行的操作有:\r\n```javascript\r\n    //pack\r\n    'static/js/app.js': [\r\n        '/src/app/**.js'//\r\n    ],\r\n    'static/js/lib.js': ['angularxxx'],\r\n    'static/css/app.css': [\r\n        '/src/components/**.css',\r\n        '/src/app/**.css'\r\n    ],\r\n//替换内联\r\n        path: [{\r\n            //项目入口\r\n            reg: '/src/index.html',\r\n            release: '/index.html'\r\n        }, {\r\n            reg: /^\\/src\\/app\\/(.*\\.tpl.html$)/i,//src/app下的模板文件,输出到/template下,以app为根\r\n            release: '/template/$1'\r\n        }]\r\n```\r\n\r\n这样每次一保存,连分析,发布,合并的时间在我的本本(`I5 8G`)上,一次得花`8s`左右才能完成,经常刷新的速度跟不上写代码的速度,这个liveload还时不时会崩溃...略坑爹\r\n\r\n有什么办法或者建议可以提高这个编译发布的速度么?"},"comment":{"url":"https://api.github.com/repos/fex-team/fis/issues/comments/69691653","html_url":"https://github.com/fex-team/fis/issues/280#issuecomment-69691653","issue_url":"https://api.github.com/repos/fex-team/fis/issues/280","id":69691653,"user":{"login":"xiangshouding","id":631195,"avatar_url":"https://avatars.githubusercontent.com/u/631195?v=3","gravatar_id":"","url":"https://api.github.com/users/xiangshouding","html_url":"https://github.com/xiangshouding","followers_url":"https://api.github.com/users/xiangshouding/followers","following_url":"https://api.github.com/users/xiangshouding/following{/other_user}","gists_url":"https://api.github.com/users/xiangshouding/gists{/gist_id}","starred_url":"https://api.github.com/users/xiangshouding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiangshouding/subscriptions","organizations_url":"https://api.github.com/users/xiangshouding/orgs","repos_url":"https://api.github.com/users/xiangshouding/repos","events_url":"https://api.github.com/users/xiangshouding/events{/privacy}","received_events_url":"https://api.github.com/users/xiangshouding/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T03:48:03Z","updated_at":"2015-01-13T03:48:03Z","body":"- 升级最近版本fis试试，因为livereload这块我做了一次优化，还没有人尝鲜，你可以试试\r\n- 是否是第三方库不必要文件太多了，可以exclude掉\r\n- 其实开发时不需要做`-o`压缩的，等上线回归测试时再打开此选项；关闭压缩足够速度提升很多了。\r\n- 拆分项目"}}