malihu / malihu-custom-scrollbar-plugin

Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.
http://manos.malihu.gr/jquery-custom-content-scroller
MIT License
4.11k stars 1.51k forks source link

CRLF error for the css #653

Open thebravoman opened 4 years ago

thebravoman commented 4 years ago

npm i on linux. @import the css into my scss. Using webpack

I get

unify_admin_style.scss:21 Uncaught (in promise) Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):

@import "malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat";
^
      File to import not found or unreadable: malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.
      in /home/user/project/app/javascript/unify_admin_style.scss (line 21, column 1)
    at Object../node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js?!./app/javascript/unify_admin_style.scss (unify_admin_style.scss:21)
    at __webpack_require__ (bootstrap:63)
    at Object../app/javascript/unify_admin_style.scss (unify_admin_style.scss:2)
    at __webpack_require__ (bootstrap:63)
    at __webpack_require__.t (bootstrap:161)

The reason is that this file has CRLF and LF as I think, is the node_modules convention.