ember install ember-cli-uglify
ember-cli-uglify it will automatically hook into the build
pipeline and minify your JS files in production builds.
If you want to customize how
ember-cli-uglify is running UglifyJS under the
hood you have several configuration options available:
// ember-cli-build.jsvar app ='ember-cli-uglify':enabled: trueexclude: 'vendor.js'uglify:compress:sequences: 50output:semicolons: true;
enabled?: boolean: Enables/Disables minification (defaults to
truefor production builds,
falsefor development builds)
exclude?: string: A list of paths or globs to exclude from minification
uglify?: UglifyOptions: A hash of options that are passed directly to UglifyJS
Source maps are disabled by default for production builds in Ember CLI. If you
want to enable source maps for production builds you can configure that in your
// ember-cli-build.jsvar app =sourcemaps:enabled: trueextensions: 'js';
ember-cli-uglify is licensed under the MIT License.