[英]How can I get source maps to work when running tests using ember-qunit for an ember app built on ember-cli
[英]Ember-CLI / Broccoli - How can I remove all comments from source files when building?
如標題中所示-通過Broccoli進行編譯時,如何從JS和CSS文件中刪除注釋。
我正在使用西蘭花作為Ember-CLI的一部分。
在構建項目時,必須將環境設置為生產環境,默認情況下為開發環境。
ember build --environment production
將ember build --environment production
,最小化和丑化您的腳本,並刪除所有注釋。
有關更多信息,請參閱文檔的此部分 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.