L
L
lavezzi12016-06-21 08:09:10
css
lavezzi1, 2016-06-21 08:09:10

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

1 answer(s)
R
rimlin, 2016-07-02
@rimlin

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 your question

Ask a Question

731 491 924 answers to any question