ember-cli-uglify v3.0.0
ember-cli-uglify
Installation
ember install ember-cli-uglifyUsage
After installing 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.js
var app = new EmberApp({
'ember-cli-uglify': {
enabled: true,
exclude: ['vendor.js'],
uglify: {
compress: {
sequences: 50,
},
output: {
semicolons: true,
},
},
},
});Options
enabled?: boolean: Enables/Disables minification (defaults totruefor production builds,falsefor development builds)exclude?: string[]: A list of paths or globs to exclude from minificationuglify?: UglifyOptions: A hash of options that are passed directly to UglifyJS
Source Maps
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.js too:
// ember-cli-build.js
var app = new EmberApp({
sourcemaps: {
enabled: true,
extensions: ['js'],
},
});License
ember-cli-uglify is licensed under the MIT License.
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
10 years ago
11 years ago
11 years ago
11 years ago