kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.5k stars 5.88k forks source link

Update scss url with interpolation #4146

Closed billyct closed 1 month ago

billyct commented 2 years ago

introduce

when I use vite, and do something with this file structure

<!-- index.html -->
<script type="module" src="/nested/main.js"></script>
// nested/main.js
import './style.scss'
// nested/style.scss
@import "slick-carousel/slick/slick-theme.scss"

issue

vite will replace the url with @return url(../node_modules/slick-carousel/slick/$slick-loader-path + $url);

and cause expected ")". error

markvantilburg commented 1 month ago

@ahmadalfy This looks good to me

ahmadalfy commented 1 month ago

Done