我使用「yo angular」與grunt sass bootstrap創建了「yeoman」的角度應用程序。如何在生產中構建yeoman「角度發生器」應用程序?
但隨着node_mudules bower_component和所有開發功能空項目200mo大小
如何建立我的生產應用程序,包括壓縮CSS/JS只保留使用和需要的Dependance。
編輯
我不明白-1,萬人使用角度發電機由自耕農,我無法找到一個構建教程這個特定的發電機。
grunt build
似乎工作,但網站顯示不好。
grunt serve:dist
構建和grunt build
的開發應用程序(它只是yo angular
空項目)
grunt serve
後,它的工作原理,我可以導航
grunt serve:dist
之後,它不起作用,我無法導航,看起來像「bower_components」沒有建好
爲什麼你要建立自我?你可以直接安裝它。 – mkkhedawat