django-webpack/django-webpack-loader

should FakeWebpackLoader also mock get_assets?

tlambert03 opened this issue · 1 comments

I found myself needing to create an extended FakeWebpackLoader when using webpack_static:

class MockWebpackLoader(FakeWebpackLoader):
    def get_assets(self):
        return {}

(otherwise you hit an IOError when it attempts to read). Would that be a good PR? or should I be doing this differently anyway?

fjsj commented

Please feel free to open the PR, thanks!