rafaelmussi / angular-templatecache-webpack-plugin

Webpack plugin that concatenates and registers AngularJS templates in the $templateCache.
MIT License
4 stars 16 forks source link

Webpack 5 support and fix issues #6

Open IvanPenyaHuguet opened 2 years ago

IvanPenyaHuguet commented 2 years ago

Add support for webpack 5, now does not support terser minimizer. Now the path separator is always / instead of platform. Add watch mode support. Update schema utils. Fixes: #1 #2 #5

Justinas-Jurciukonis commented 1 year ago

@IvanPenyaHuguet Are you going to merge this any time soon?

IvanPenyaHuguet commented 1 year ago

Hi @Justinas-Jurciukonis I don't have write permissions for this repository. We have used my version of the plugin in production by long time but we now use another approach which I think works best.

Using the Html Loader and importing all htmls in a js file.

You can see an example with an Angularjs and Angular 15 Hybrid application of the Loader configuration here and example of the templates file to load all other html files in the bundle here in the example is using import.meta but in older version you have to use require.context instead.