
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
ember-cli-terser
Advanced tools
terser integration to ember-cli to minify your JavaScript.
ember install ember-cli-terser
After installing ember-cli-terser
it will automatically hook into the build
pipeline and minify your JS files in production builds.
If you want to customize how ember-cli-terser
is running terser under the
hood you have several configuration options available:
// ember-cli-build.js
var app = new EmberApp({
'ember-cli-terser': {
enabled: true,
exclude: ['vendor.js'],
terser: {
compress: {
sequences: 50,
},
output: {
semicolons: true,
},
},
// Tell broccoli-terser-sourcemap to not add sourcemap URLs
hiddenSourceMap: true,
},
});
enabled?: boolean
: Enables/Disables minification (defaults to true
for
production builds, false
for development builds)
exclude?: string[]
: A list of paths or globs to exclude from minification
terser?: TerserOptions
: A hash of options
that are passed directly to terser
If no terser
option is passed, a default configuration will be used.
Options supported by broccoli-terser-sourcemap may be added as top-level fields.
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'],
},
});
ember-cli-terser is licensed under the MIT License.
v4.0.2 (2021-04-28)
FAQs
JavaScript minification for Ember-CLI
We found that ember-cli-terser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.