Home

Issue: 148

How can I define stylus options?

[issue link]

I import various helpers (mixins, vars, functions) into my component automatically to ensure they’re always available to me and my team.

Currently I do this by setting the stylus import option within the webpack config as shown below;

stylus: { import: ['~stylus/common.styl'] }

I’ve not been able to figure out how to do this with nuxt, but i’ll admit i’ve not looked deeply into the source myself to see how things are working, I’m hoping this is possible just yet to be documented.

This question is available on Nuxt.js community (#c126)