ng-cache-loader icon indicating copy to clipboard operation
ng-cache-loader copied to clipboard

Custom module name based on entry point name

Open dcanlas opened this issue 7 years ago • 0 comments

How can I provide a custom module name based on the entry points provided? Example: entry: { 'foo' : projPath + '/foo.js', 'bar': projPath + '/bar.js }, ... { test: /\.html$/, use: [ { loader: 'ng-cache-loader', options: { //tried this syntax as well as ng-cache-loader?module=foo... module: 'test.[root]' } } ] }

I want to end up with two modules created where my templates will be associated to. angular.module('foo').run( ... ); angular.module('bar').run( ... )

Is this possible with current existing functionality? Btw, I am also using webpack v4.20 and it seems like the custom module name function doesn't work.

dcanlas avatar Nov 15 '18 20:11 dcanlas