
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
ember-cli-swc-minifier
Advanced tools
esbuild integration to ember-cli to minify your JavaScript.
Note that targeting ES5 is not supported.
ember-cli-terser or ember-cli-ugfilypnpm add --dev @nullvoxpopuli/ember-cli-swc-minifier
# or
npm install --save-dev @nullvoxpopuli/ember-cli-swc-minifier
After installing ember-cli-swc-minifier it will automatically hook into the build
pipeline and minify your JS files in production builds.
If you want to customize how ember-cli-swc-minifier is running terser under the
hood you have several configuration options available:
// ember-cli-build.js
var app = new EmberApp({
'ember-cli-swc-minifier': {
enabled: true,
exclude: ['vendor.js'],
swc: {
/*
Optional SWC minify config goes here
https://swc.rs/docs/usage/core#minify
*/
}
},
});
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
sourceMap: the ESBuild sourcemap option. false, by default. Can be: 'linked', 'external', 'inline', 'both', or false. See ESBuild's docs for more info
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'],
},
});
Debugging this plugin can be done with
JOBS=1 NODE_OPTIONS="--inspect-brk" ember test -e production
and then visit chrome://inspect in Google Chrome.
you'll want to place a debugger somewhere in the broccoli code
(located at ./lib/broccoli) so that execution pauses near the code you want
to inspect.
ember-cli-swc-minifier is licensed under the MIT License.
FAQs
JavaScript minification for Ember-CLI
The npm package ember-cli-swc-minifier receives a total of 9 weekly downloads. As such, ember-cli-swc-minifier popularity was classified as not popular.
We found that ember-cli-swc-minifier demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.