knockout-amd-helpers icon indicating copy to clipboard operation
knockout-amd-helpers copied to clipboard

[Request] Option to require additional files by convention

Open JacobRichardt opened this issue 10 years ago • 1 comments

Would be nice to be able to configure additional requires by convention. So "module: 'MyModule'" could additionally require "css!styles/MyModule" or "less!styles/MyModule", here used with the require-css or require-less modules. That way styles for views can be loaded automatically without creating a dependency in the viewmodel.

At it simplest it could just be a hook every time template or module is used.

JacobRichardt avatar Jul 10 '14 15:07 JacobRichardt

sounds like an interesting idea. need to think through and investigate how the life cycle of those modules would work.

rniemeyer avatar Jul 10 '14 15:07 rniemeyer