package
Broccoli filter to uglify files while preserving their sourcemaps.
npm install broccoli-uglify-sourcemapGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
A broccoli filter that applies terser to uglify code while properly generating or maintaining sourcemaps.
npm install --save broccoli-uglify-sourcemapconst Uglify = require('broccoli-uglify-sourcemap');
// basic usage
let uglified = new Uglify(input);
// advanced usage
let uglified = new Uglify(input, {
exclude: [..], // array of globs, to not minify
uglify: {
mangle: false, // defaults to true
compress: false, // defaults to true
sourceMap: false, // defaults to true
//...
},
publicUrl: 'https://myamazingapp.com/', // value to be prepended to sourceMappingURL, defaults to ''
hiddenSourceMap: false, // skips adding the reference to sourcemap in the minified JS, defaults to false
concurrency: 3
To disable parallelization:
$ JOBS=0
$ JOBS=1ember-cli
stefan.penner+ember-cli@gmail.com
Estimated unpacked size across 34 packages.
6.6 MB
Includes dependencies.
10 direct · 3 outdated
^4.1.0
4.4.3
^5.3.0
5.51.2
^2.2.0
4.0.2
^6.0.0
10.0.3
^0.4.0
0.4.1
^1.0.5
1.0.5
^4.6.1
4.6.1