Vue项目中使用stylus(.styl文件)

  • 安装
npm install stylus stylus-loader --save-dev

  • 在.vue文件的style块中使用
<style scoped lang="stylus">
...
</style>
  • 外部引用.styl文件
<style lang="stylus">
@import "path/name.styl";

</style>

stylus语法参考:http://www.zhangxinxu.com/jq/stylus/

上一篇 Vue.js路由回退到指定页面
下一篇 Vue过滤器
目录
文章列表
1 Flutter Widget之Container
Flutter Widget之Container
2
Prometheus + Grafana 使用 Node Exporter 监控主机
Prometheus + Grafana 使用 Node Exporter 监控主机
3
WordPress githuber-md插件xml代码块不显示解决
WordPress githuber-md插件xml代码块不显示解决
4
Node.js 入门
Node.js 入门
5
CSharp 基本技术点
CSharp 基本技术点
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。