ktsn / vue-template-loader

Vue.js 2.0 template loader for webpack
MIT License
266 stars 26 forks source link

Clarified some of the language in the readme (and added details around usage with less and other transpilers) #34

Closed bentefay closed 7 years ago

bentefay commented 7 years ago

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?

bentefay commented 7 years ago

I've included all your suggestions in the latest commit :)

ktsn commented 7 years ago

Thank you so much! Great job 👍