ng-cache-loader
ng-cache-loader copied to clipboard
Custom module name based on entry point name
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.