I’m using @akryum’s vue-component and vue-stylus.
In my /client folder I’ve got a file called presets.styl that has a list of preset variables, like named colors.
In my stylus-files I can @import presets
to use the presets. However, when I try the same in the <style>
tag of a .vue file, the compiler says failed to locate @import file presets.styl
.
I’ve tried all combinations of slashes, dots and /client/ before the name, but it can’t seem to find it.
Edit: Lol ok now it works, the answer was apparantly @import '../../presets'
. Seems like you can’t “go to root” (like "/presets"
) in Stylus imports?