項目已經搭建,須要添加stylusvue
// vue.config.js詳情 const path = require('path'); module.exports = { pluginOptions: { 'style-resources-loader': { preProcessor: 'stylus', patterns: [ // path.resolve(__dirname, 'src/styles/abstracts/*.styl'), path.resolve(__dirname, 'src/assets/styles/index.styl'), ], } }