Ykit: A Webpack‑Based Build Tool for Faster, Consistent Frontend Development at Qunar

This article introduces Ykit, a Webpack‑based build tool created to simplify environment setup, reduce configuration complexity, and accelerate build times through entry filtering, multi‑process compression, and a rich plugin ecosystem, sharing its adoption and future roadmap at Qunar.

Qunar Tech Salon
Qunar Tech Salon
Qunar Tech Salon
Ykit: A Webpack‑Based Build Tool for Faster, Consistent Frontend Development at Qunar

As JavaScript applications become increasingly diverse and complex, setting up a basic development environment in a large company can take half a day, hindering productivity; the article presents Ykit, a Webpack‑based build tool designed to let developers focus on core development work.

Webpack is one of the most popular frontend build tools, offering high configurability for frameworks such as React, Angular, and Vue, but its flexibility often results in overly complex configuration files that are unfriendly to newcomers.

Before Ykit, Qunar’s teams used a mix of tools (Gulp, Grunt, Webpack) leading to duplicated scripts for tasks like resource paths, versioning, HMR, and mock services, a lack of build‑level optimizations (e.g., extracting common code with CommonChunks), and high communication and learning costs across projects.

Ykit wraps Webpack with a plugin mechanism; by installing the appropriate plugin developers can instantly obtain a ready‑to‑use environment for React, Ant Design, WeChat mini‑programs, mobile landing pages, and more, while encapsulating common build steps such as version file generation.

To speed up builds, Ykit performs entry filtering so that only the resources requested by a page are bundled, and it replaces the built‑in UglifyJS with multi‑process compression, avoiding memory overflow in large projects; additional plugins like Happypack and DLLPlugin further reduce first‑build times from tens of seconds to a few seconds.

Currently more than 80 projects across Qunar’s business lines use Ykit, and the tool is open‑source on GitHub (YMFE/ykit); future plans include expanding scenarios such as additional mini‑program scaffolds to make environment setup even simpler and keep developers focused on product development.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

optimizationwebpackbuild toolsPlugins
Qunar Tech Salon
Written by

Qunar Tech Salon

Qunar Tech Salon is a learning and exchange platform for Qunar engineers and industry peers. We share cutting-edge technology trends and topics, providing a free platform for mid-to-senior technical professionals to exchange and learn.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.