-
I am trying to import foundation-icons without defining any loader in the This is the error:
This is my
My
app/javascript/packs/application.sass
This is the sample repo |
Beta Was this translation helpful? Give feedback.
Answered by
tomdracz
Jun 24, 2024
Replies: 1 comment 9 replies
-
Are the files published? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! So this works:
tomdracz/shakapacker-css-test@0020274
But If I try
@import 'foundation-icons/foundation-icons.scss'
then it goes kaboom. Now it's all lining up.https://github.com/webpack-contrib/sass-loader?tab=readme-ov-file#problems-with-url
I don't see foundation-icons providing any variable to get the paths modified, so hooking up
resolve-url-loader
is probably the go-to solution here.Unless you're happy to just import css rather than scss version of that file?