A webpack loader that preprocesses AngularJS HTML templates with html-minifier for minification. At version 0.0.3, it is a niche utility for AngularJS projects using webpack. It has not been updated since 2016 and lacks documentation. Alternatives like html-webpack-plugin or angular-template-loader may be more modern options.
npm install ng-html-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure webpack to minify AngularJS HTML templates using ng-html-loader.
Use html-webpack-plugin or angular-template-loader instead.
Refer to html-minifier documentation for options.
Install html-minifier separately: npm install html-minifier --save-dev
npm install html-minifier --save-dev
Ensure the test regex matches .html files and the loader is applied in the module rules.