BosNaufal / vue-scrollbar

The Simplest Scroll Area Component with custom scrollbar for Vue Js. https://bosnaufal.github.io/vue-scrollbar/
MIT License
117 stars 25 forks source link

when i use it with webpack ,it takes error #2

Closed nixizhiguang closed 8 years ago

nixizhiguang commented 8 years ago

Hi, as the title says,I got an error,web pack tell me to get an loader to resolve your vue compoment.What I need to install or set ? The error seems like this:ERROR in ./~/vue-scrollbar/src/sass/_Scrollbar.sass Module parse failed: /web/xxxx/node_modules/vue-scrollbar/src/sass/_Scrollbar.sass Unexpected token (3:0) You may need an appropriate loader to handle this file type.

But I have set webpack with the sass loader ,like this:{ test: /.[scss,sass]$/, loaders: ['style', 'css', 'sass'] },

BosNaufal commented 8 years ago

Hi @nixizhiguang, Thank you for giving me an issue here~ For your problem, would you like to show me the screenshot which is showing the error? Just for full readable log :grin:

nixizhiguang commented 8 years ago

I got it ,my sass loader just read ".scss" file ... It resovled success,after I add ".sass" config alone. Like this: { test: /.sass$/, loaders: ['style', 'css', 'sass'] }, Thanks for your reply!