css-purge

How to integrate PurgeCSS with Angular CLI project

╄→尐↘猪︶ㄣ 提交于 2021-02-06 03:52:32
问题 I have an Angular project created with Angular CLI, so I have angular.json file for configuring the build. I wanted to integrate PurgeCSS as it seems to be a great tool to reduce the size of our CSS bundle. On PurgeCSS website, they explain how to integrate with Webpack. I found a tutorial that explains how to add custom webpack integration with Angular CLI. Did anyone have a successful example of PurgeCSS integrated with Angular CLI project ? 回答1: I created this bash script to use PurgeCSS

How to integrate PurgeCSS with Angular CLI project

a 夏天 提交于 2021-02-06 03:52:30
问题 I have an Angular project created with Angular CLI, so I have angular.json file for configuring the build. I wanted to integrate PurgeCSS as it seems to be a great tool to reduce the size of our CSS bundle. On PurgeCSS website, they explain how to integrate with Webpack. I found a tutorial that explains how to add custom webpack integration with Angular CLI. Did anyone have a successful example of PurgeCSS integrated with Angular CLI project ? 回答1: I created this bash script to use PurgeCSS