Categories
Global stylus variables in webpack?
How to give global access to stylus variables? In order not to import the variables.style file in each file
Answer the question
In order to leave comments, you need to log in
In the webpack config, add the following Stylus setting field:
stylus: { import: path.join(__dirname, 'variables.styl') }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question