简体   繁体   中英

Ember-CLI / Broccoli - How can I remove all comments from source files when building?

As in the title - how would one go about removing comments from both JS and CSS files when being compiled though Broccoli.

I am using Broccoli as part of Ember-CLI.

When you build your project you have to set the environment to production, it defaults to development.

ember build --environment production will concat, minify and uglify your scripts and css removing all comments.

For more info refer to this part of the docs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM