Thanks for writing this loader. Very useful with typescript!
I had some issues trying to use the loader with scoped styles and less-loader, so I figured it might be useful to include an explanation in the readme for how to configure webpack for this usage. If the scoped-style-loader runs before the less-loader, the attribute selector injected by the scoped-style-loader interacts with nested classes and some less operators (like the & parent selector), which can result in hard to debug webpack errors. This commit updates the readme to suggest marking the less-loader (and other similar loaders) as normal rather than post loaders to avoid this error. It also suggests a workaround for using the >>> operator in less.
I also went through and clarified some of the language. Hope that's ok?
Thanks for writing this loader. Very useful with typescript!
I had some issues trying to use the loader with scoped styles and less-loader, so I figured it might be useful to include an explanation in the readme for how to configure webpack for this usage. If the
scoped-style-loader
runs before theless-loader
, the attribute selector injected by thescoped-style-loader
interacts with nested classes and some less operators (like the & parent selector), which can result in hard to debug webpack errors. This commit updates the readme to suggest marking the less-loader (and other similar loaders) as normal rather than post loaders to avoid this error. It also suggests a workaround for using the>>>
operator in less.I also went through and clarified some of the language. Hope that's ok?