当前位置:网站首页>構建工具
構建工具
2022-07-20 13:01:00 【51CTO】
JavaScript 構建工具改變並塑造了我們構建在 Web 上運行的項目的方式。構建工具是任何開發工作流的一個組成部分,它們包括(但不限於)Task Runner(任務運行器)、Transpiler、模塊打包器、Linter、包管理器和開發服務器。
這些工具幫助開發人員高效地構建,並使開發過程變得更加簡單(盡管配置它們可能會變得複雜)。
流行的構建工具很多,例如:
- Vite — 是一種新型前端構建工具,能够顯著提昇前端開發體驗。
- Webpack — 現代 JavaScript 應用程序的靜態模塊打包器。它的主要目的是捆綁 JavaScript 文件以在瀏覽器中使用,但它也能够轉換、捆綁或打包幾乎任何資源。
- Parcel — 一個 Web 應用程序捆綁器,以其開發人員體驗而著稱。它利用多核處理提供了極快的性能,並且需要零配置。
- Rollup — 用於 JavaScript 的模塊打包器,它將小段代碼編譯成更大更複雜的東西,例如庫或應用程序。
- Gulp — 自動化和增强工作流程的工具包
- Grunt — 基於任務的 JavaScript 工程命令行構建工具。
前面我們已經寫過一些關於這方面的內容:
- Webpack 减少構建時間
- esbuild 入門
- 將 ES 模塊與 rollup.js 捆綁並生成多種文件格式
- Tree Shaking
- Webpack DefinePlugin
- Webpack Watch
- 使用 Webpack 編譯 TypeScript
- Webpack externals
- 使用別名縮短 Webpack 中的導入路徑
- 持續更新...
後面會繼續深入學習,記錄一些關於這方面的內容。
边栏推荐
猜你喜欢
NFT game interoperability: technology is not a roadblock
DolphinScheduler
这些年我开源的几个小项目
Shuttle + Alluxio 加速内存Shuffle起飞
为什么独立站卖家喜欢做电子邮件营销?原来转化率能提高这么多!
Unity practical problems webgl problem collection part 2
NFT 游戏互操作性:技术不是拦路虎
Sending the email to the following server failed. IOException while sending message problem solving
[Extension announcement] 2022 International Conference on network and information security (nisecurity 2022)
模板与泛型编程之退化技术
随机推荐
Apt learning
直播短视频源码——直播短视频源码的开发步骤顺序五步走
C explanation of message dialog box based on MessageBox class
Tencent celebrities share | Tencent alluxio (DOP) landing and Optimization Practice in the financial scene
The new blue ocean "hard sunscreen" can't cover the 100 billion market
PyG教程(8):计算更高效的稀疏矩阵形式
Druid 配置和监控
Web3创业具备创新爆炸式增长的所有要素
供应链攻击日益严重,微软开源 SBOM 生成工具 Salus
Discussion on segment tree · number of ordinary segments | number of multiplicative segments | chairman tree
Starbucks may close more U.S. stores in the future due to concerns about the safety of employees
多线程的配置以及使用
微服务--熔断和限流
STL Vector capacity
Unity实战问题-WebGL问题集锦-下篇
[papers] famous conferences and periodicals
【数据集制作】标注工具
Sending the email to the following server failed. IOException while sending message problem solving
Nacos配置管理——统一配置管理
[HDU 6095] Rikka with Competition