reactjs - 在反应中为手写笔安装自动前缀插件
问题描述
我想为手写笔安装这个自动前缀: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);
});
"
但我不知道在哪里添加该代码。在哪个文件中以及如何。
谢谢
解决方案
推荐阅读
- java - DB和java时间日期比较和转换
- xpath - 如何在 IIB 的图形映射节点的自定义 XPath 中创建 if else 函数?
- c++ - 是否可以设置在条件有效的任何地方评估的“全局”条件断点?
- ubuntu - 如何在 Ubuntu 16.04.6 中设置允许 Grafana 绑定到端口 80?
- r - 将 Plotly 预测图转换为 ggplot 图
- javascript - 使用反应动画多个文本
- c# - 如何在以下场景中使用 Autofac 实现装饰器模式
- php - 在 WooCommerce 存档页面上悬停时切换产品图像
- javascript - 如何在 jQuery 中从 responseJSON 中检索数据?
- django - 通道:为什么在处理结束时发送消息