[Vuejs]-How can I define default imports for Stylus in nuxt.js

0👍

Webpack 2 changed the syntax slightly. Instead of having a stylus key in the top level Webpack config, you have an options key under your stylus-loader configuration. So you should use something like:

...
{
  loader: 'stylus-loader',
  options: {
    import: ['~stylus/common.styl']
  }
}
...

Here’s a solution for an identical issue with a different loader.

Leave a comment