angular-builders icon indicating copy to clipboard operation
angular-builders copied to clipboard

How do I change the minimizer?

Open NCBloodhound opened this issue 8 years ago • 1 comments

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?

NCBloodhound avatar Sep 06 '18 16:09 NCBloodhound

Nevermind. It appears to be working fine. AngularCLI says uglify is being used, but then said babel.

NCBloodhound avatar Sep 06 '18 16:09 NCBloodhound