Created
August 28, 2017 14:47
-
-
Save alexdiliberto/0f30b5e92e80d4b9ab4e311c0d25b6da to your computer and use it in GitHub Desktop.
Strip all console/debugging/log statements from an Ember prod build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defeatureify: { | |
'enableStripDebug': true, | |
'debugStatements': [ | |
'Ember.default.warn', | |
'Ember.default.assert', | |
'Ember.default.deprecate', | |
'Ember.default.debug', | |
'Ember.default.Logger.assert', | |
'Ember.default.Logger.debug', | |
'Ember.default.Logger.error', | |
'Ember.default.Logger.info', | |
'Ember.default.Logger.log', | |
'Ember.default.Logger.warn', | |
'console.assert', | |
'console.clear', | |
'console.count', | |
'console.debug', | |
'console.dir', | |
'console.dirxml', | |
'console.error', | |
'console.group', | |
'console.groupCollapsed', | |
'console.groupEnd', | |
'console.info', | |
'console.log', | |
'console.profile', | |
'console.profileEnd', | |
'console.select', | |
'console.table', | |
'console.time', | |
'console.timeEnd', | |
'console.trace', | |
'console.warn' | |
], | |
'features': {} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ember install ember-cli-defeatureify |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment