我想在.vue文件的<script>中是用styluslet stylus = require('stylus')console.log(stylus)但是失败了。This dependency was not found:* fs in ./~/.0.54.5@stylus/lib/utils.js, ./~/.0.54.5@stylus/lib/middleware.js and 12 othersTo install it, you can run: npm install --save fsThis relative module was not found:* ./lib-cov/stylus in ./~/.0.54.5@stylus/index.js我新建了个test.js文件,在里面引用却没问题。我试过在webpack.base.conf.js 中设置这个:{ test: /\.styl$/, loader: 'style-loader!css-loader!stylus-loader' } 没用。有人有踩过这个坑或者任何想法吗?感谢
添加回答
举报
0/150
提交
取消