Static GitHub Issues

[148] How can I define stylus options?

prev: [Question] How to configure port where nuxt.js is running?
next: localhost https

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.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c126">#c126</a>)</em></sub></div>