stylus global import not work!
See original GitHub issuei use stylus ,
min.styl
$main-color = #000000
App.vue
@import "../assets/min.styl"
Holle.vue
.button
$main-color
holle.vue can’t find $main-color what can i do
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
stylus can't resolve @import - node.js - Stack Overflow
The problem is in the relative path of @import "../button.styl" . If I replace it with an absolute path to button.styl it becomes...
Read more >@import and @require | Stylus
@import and @require #. Stylus supports both literal @import for CSS, as well as dynamic importing or requiring of other Stylus sheets.
Read more >css-loader | webpack - JS.ORG
We strongly recommend that you specify the extension when importing a file, since it is possible to import a file with any extension...
Read more >Importing REX Files - Stylus RMX - 1.10
With the REX File Import feature that is built into the Stylus RMX ... This means that Stylus RMX is not simply a...
Read more >Styles & CSS - Astro Documentation
You can opt-out of automatic CSS scoping with the <style is:global> attribute. ... CSS imports work like any other ESM import in an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just wanted to leave a note to say @sky790312 's comment above helped me figure this out.
My
vue.config.js
which worksHow to import once