vue使用stylus

在package.json中添加  stylus-loader

"css-loader": "^0.28.0",
"stylus-loader":"^2.1.1",
"eventsource-polyfill": "^0.9.6",

再重建创建依赖包

cnpm install

要向import styl的时候能使用,就要再webpack中配置

{
        test: /.css$/,
        use: [ 'style-loader', 'css-loader' ]
      },
      {
        test: /.styl$/,
        loader: [ 'style-loader', 'css-loader' ,'stylus-loader']
      }
原文地址:https://www.cnblogs.com/norm/p/7060067.html