首页 > 解决方案 > 在反应中为手写笔安装自动前缀插件

问题描述

我想为手写笔安装这个自动前缀:https ://www.npmjs.com/package/autoprefixer-stylus

安装 nmp 后,它说我可以“将 autoprefixer-stylus 包含为普通的手写笔插件。下面的基本示例:

var stylus = require('stylus');
var autoprefixer = require('autoprefixer-stylus');

stylus(css)
  .use(autoprefixer())
  .render(function(err, output){
    console.log(output);
  });

"

但我不知道在哪里添加该代码。在哪个文件中以及如何。

谢谢

标签: reactjspluginsstylusautoprefixer

解决方案


推荐阅读