How do I change the minimizer?
I'm trying to follow the instructions at this link to change my minimizer: https://fontawesome.com/how-to-use/with-the-api/other/tree-shaking
My angular.json:
"builder": "@angular-builders/custom-webpack:browser",
"customWebpackConfig": {
"path": "./extra-webpack.config.js",
"mergeStrategies": { "loaders": "replace" }
}
My extra-webpack.config.js:
const BabelMinifyPlugin = require('babel-minify-webpack-plugin');
module.exports = {
// ...
optimization: {
minimizer: [
new BabelMinifyPlugin()
]
}
}
When I run a build it is still using Uglify instead of Babel. What am I missing?
Nevermind. It appears to be working fine. AngularCLI says uglify is being used, but then said babel.