Correct way to load styles for lazy modules

Hi!

What is the correct way to load styles when using lazy modules with webpack? I have checked examples in Templates section as well as boilerplate code generate by cli tool but all of them simple import framework7.bundle.css.

Under Browser modules, it says that Note, that browser modules also load modules styles automatically. However, this method is not suitable for webpack.

So what is the right way to load styles for lazy modules with webpack? Just import framework7.bundle.css? If yes, how to remove unused css code?

I think I found the correct method (taken from docs) - Less.js. I think there should be cross-reference between Lazy Modules and Less.js. Would @nolimits4web be open to PR to update docs (add cross-reference)?

Yes, i always open to PR for docs :slight_smile: