We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm tried:
npm install ts-transformer-minify-privates --save-dev npm install @angular-builders/custom-webpack --save-dev npm install ts-loader --save-dev
angular.json
"projects": { "architect": { "build": { "builder": "@angular-builders/custom-webpack:browser", "options": { "customWebpackConfig": { "path": "custom-webpack.config.js", "replaceDuplicatePlugins": true } } } }
custom-webpack.config.js
// webpack.config.js var minifyPrivatesTransformer = require('ts-transformer-minify-privates').default; module.exports = (config, options) => { if (config.module && config.module.rules) { config.module.rules.push( { test: /\.ts$/, loader: 'ts-loader', // or 'awesome-typescript-loader' options: { getCustomTransformers: program => ({ before: [ minifyPrivatesTransformer(program) ] }) } } ); } return config; }
tsconfig.ts
"compilerOptions": { "plugins": [ { "transform": "ts-transformer-minify-privates" } ] }
RUN BUILD
npm run build
but private field aren't minified... :(
The text was updated successfully, but these errors were encountered:
Hi @cesco69, I'm not familiar with Angular. Does it give a way to provide custom transformers during the compilation?
Sorry, something went wrong.
No branches or pull requests
I'm tried:
angular.json
custom-webpack.config.js
tsconfig.ts
RUN BUILD
but private field aren't minified... :(
The text was updated successfully, but these errors were encountered: