字节宝
  • 分类
  • 教程
  • 文章
  • 官方文档
  • 技术
  • 入门教程
  • 文章
  • VIP会员
/parcelbundler/
Parcel 与 Stylus
  • 赞
  • 收藏
  • 更多文章
  • 目录

  1. 开始使用
    1. Parcel 快速开始
    2. Parcel 资源(Assets)
    3. Parcel 转换(Transforms)
  2. 特色
    1. Parcel 代码拆分(Code Splitting)
    2. Parcel 热模块重载(HMR)
    3. Parcel 生产环境(Production)
    4. Parcel CLI
    5. Parcel 配方(Recipes)
    6. Parcel 环境变量
    7. Parcel 模块解析
  3. 资源类型
    1. Parcel 与 JavaScript
    2. Parcel 与 ReasonML
    3. Parcel 与 CSS
    4. Parcel 与 SCSS
    5. Parcel 与 LESS
    6. Parcel 与 Stylus
    7. Parcel 与 HTML
    8. Parcel 与 TypeScript
    9. Parcel 与 CoffeeScript
    10. Parcel 与 Vue
    11. Parcel 与 JSON
    12. Parcel 与 GraphQL
    13. Parcel 与 Rust
    14. Parcel 与 WebAssembly
    15. Parcel 与 Elm
    16. Parcel 与 YAML
    17. Parcel 与 TOML, OpenGL, WebManifest
    18. Parcel 与 Pug
  4. 进阶
    1. Parcel 它如何运作
    2. Parcel 资源类型
    3. Parcel 插件
    4. Parcel Packagers
    5. Parcel API
阅读(4100) 赞(4)

Parcel 与 Stylus

2020-02-14 17:15:11 更新

Stylus

支持扩展类型:styl

甚至都不需要安装 Stylus ????, 当检测到 Stylus 文件时 Parcel 将会自动安装。

在 HTML 或 JavaScript 导入 Stylus

import './custom.styl'

或

<link href="./custom.styl" rel="stylesheet" />


← Parcel 与 LESS
Parcel 与 HTML →

推荐文章

  • 学电脑办公软件一定要参加培训班吗?本篇文章告诉你!
  • java语言的三大特性是什么?如何理解?
  • 后端是做什么的?后端开发者需要具备哪些技能?
  • 前端入门到工作要多久?结果可能颠覆你的认知!
  • Python开发网站好吗?为什么是个好选择?

推荐教程

  • 设计模式、高可用性、高弹性、运维、监控与自动化
  • 前后端分离的思考与实践
  • Susy 2 入门教程
  • 让web app更快的HTML5最佳实践
  • Stack Overflow 揭秘程式开发者15 个不为人知的秘密

技术文章

  • 在 C# 中获取操作系统相关信息
  • AI 检索器(AI Retriever):RAG的重要组成部分,超强的商业优势
  • 基于知识库、工作流的智能体实践
  • 前端性能优化
  • 玩转腾讯混元 | 腾讯混元大模型AIGC系列产品技术有奖征文活动

Copyright©2023  字节宝字节宝| |

违法和不良信息举报电话:|举报邮箱:3111859717@qq.com