Tag

Webpack

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 29, 2025 · Frontend Development

Creating a Git Information Injection Plugin for Webpack and Vite Using Trae‑Builder

This article explains how to develop a custom plugin that automatically captures Git metadata during build time, injects it into the bundled code, and exposes the information via a console command, with step‑by‑step guidance for both Webpack and Vite projects using Trae‑Builder.

JavaScriptTrae-BuilderWebpack
0 likes · 12 min read
Creating a Git Information Injection Plugin for Webpack and Vite Using Trae‑Builder
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 13, 2025 · Frontend Development

auto-i18n-translation-plugins: A Full-Automatic Frontend Internationalization Plugin for Vite and Webpack

The article introduces auto‑i18n‑translation‑plugins, a Babel‑based automatic internationalization plugin for frontend projects that works with Vite and Webpack, detailing its features, installation, configuration options, translator setup, usage examples, and best practices for generating multilingual JSON translation files without modifying business code.

JavaScriptWebpackfrontend
0 likes · 13 min read
auto-i18n-translation-plugins: A Full-Automatic Frontend Internationalization Plugin for Vite and Webpack
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 21, 2025 · Frontend Development

Building a Frontend Build‑Info Plugin with Trae AI: A Step‑by‑Step Guide

This article demonstrates how to create a "dist‑info" plugin compatible with Webpack and Vite that automatically injects Git metadata into the built HTML, using the AI‑assisted Trae IDE to scaffold the project, write core code, and publish the package to GitHub and npm.

Build InfoTraeWebpack
0 likes · 17 min read
Building a Frontend Build‑Info Plugin with Trae AI: A Step‑by‑Step Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 9, 2025 · Frontend Development

Managing and Optimizing Import Statements in Frontend Projects

This article explains why import statements can fill an entire file, examines the problems caused by excessive imports, and presents practical techniques such as module re‑export, require.context, dynamic import, webpack ProvidePlugin, Vite plugins, TypeScript namespaces, aliasing, and Babel plugins to keep import sections concise and maintainable.

@ImportWebpackcode organization
0 likes · 11 min read
Managing and Optimizing Import Statements in Frontend Projects
Sohu Tech Products
Sohu Tech Products
Jan 22, 2025 · Frontend Development

Implementing a Webpack Plugin for Incremental CDN Upload with Caching

The article explains how to build a custom Webpack plugin that uploads compiled static assets to a CDN, rewrites public‑path references to CDN URLs, and employs a hash‑based cache file to skip unchanged files, cutting build time from 40 seconds to 17 seconds in large projects.

Webpackbuild optimizationcaching
0 likes · 11 min read
Implementing a Webpack Plugin for Incremental CDN Upload with Caching
大转转FE
大转转FE
Jan 21, 2025 · Frontend Development

code‑inspector‑plugin: A Frontend Development Tool for Fast Source‑Code Location and IDE Integration

The article introduces code‑inspector‑plugin, an open‑source plugin for bundlers like webpack, Vite, and Rspack that lets developers click a DOM element in the browser to instantly open the corresponding source file in their IDE, detailing installation, configuration, usage, implementation principles, and common troubleshooting tips.

IDE IntegrationWebpackcode-inspector
0 likes · 24 min read
code‑inspector‑plugin: A Frontend Development Tool for Fast Source‑Code Location and IDE Integration
Sohu Tech Products
Sohu Tech Products
Jan 15, 2025 · Frontend Development

Tree Shaking in React.js: Principles, Best Practices and Applications

Tree shaking in React.js leverages ES6 static imports and named exports to eliminate dead code, reducing bundle size and improving load performance, while best practices such as modular design, avoiding side effects and dynamic imports ensure optimal dead‑code elimination across components and libraries.

Dead Code EliminationES6 ModulesReact.js
0 likes · 7 min read
Tree Shaking in React.js: Principles, Best Practices and Applications
ByteDance Web Infra
ByteDance Web Infra
Jan 7, 2025 · Frontend Development

Practical Guide to Building React Server Components (RSC) and Server Actions with Webpack and Turbopack

This article explains the concepts, rendering strategies, and bundling processes of React Server Components and Server Actions, detailing how Webpack and Turbopack handle module boundaries, code splitting, CSS, SSR, HMR, and how a single compilation can produce both server and client bundles efficiently.

ReactServer ActionsServer Components
0 likes · 30 min read
Practical Guide to Building React Server Components (RSC) and Server Actions with Webpack and Turbopack
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 20, 2024 · Frontend Development

Comparing Rollup and Webpack for Component Library Bundling and CSS Handling

This article compares Rollup and Webpack for bundling JavaScript component libraries, demonstrates how to configure each tool for ESM, CJS, and UMD outputs, shows CSS extraction with plugins versus loaders, and explains why Rollup is preferred for library builds and how Vite leverages it.

RollupWebpackbundling
0 likes · 10 min read
Comparing Rollup and Webpack for Component Library Bundling and CSS Handling
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 9, 2024 · Frontend Development

Implementing Frontend Version Update Detection with Git Revision Plugin and Webpack

This article explains how to detect frontend deployment changes and prompt users to refresh by generating a git‑hash JSON file with git‑revision‑webpack‑plugin, creating Vue mixins for version checking, and comparing hashed filenames in the built index.html, covering three practical solutions with their pros and cons.

JavaScriptVersioningVue
0 likes · 10 min read
Implementing Frontend Version Update Detection with Git Revision Plugin and Webpack
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 2, 2024 · Frontend Development

Comprehensive Guide to Homepage Load Speed Optimization

This article provides a thorough, English-language guide to optimizing homepage loading speed, covering resource loading techniques, page rendering improvements, and practical Webpack, Nginx, and browser APIs with code examples for developers seeking performance gains.

CSSJavaScriptLoading
0 likes · 12 min read
Comprehensive Guide to Homepage Load Speed Optimization
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 12, 2024 · Frontend Development

First Screen Optimization Techniques for Web Performance

This article explains what first‑screen optimization is and presents ten practical methods—including resource compression, image optimization, asynchronous loading, preloading, CSS/JS optimization, caching strategies, server‑side rendering, CDN acceleration, and delayed loading—complete with detailed Webpack configurations and code examples to improve initial page render speed.

OptimizationWebpackfirst-screen
0 likes · 20 min read
First Screen Optimization Techniques for Web Performance
JD Tech Talk
JD Tech Talk
Sep 25, 2024 · Frontend Development

Migrating a Webpack Project to Vite Using the Golden Circle Framework

This article explains why and how to migrate a large Vue 2 Webpack codebase to Vite, applying Simon Sinek's Golden Circle model to clarify motivation, method, and concrete steps, and demonstrates the resulting dramatic reduction in build time and bundle size.

Build ToolsMigrationVue2
0 likes · 13 min read
Migrating a Webpack Project to Vite Using the Golden Circle Framework
JD Tech
JD Tech
Sep 18, 2024 · Frontend Development

Migrating a Webpack Project to Vite: A Golden Circle Approach

This article explains how to apply Simon Sinek's Golden Circle framework to migrate a large‑scale Webpack‑based frontend project to Vite, detailing the motivations, the faster development experience, step‑by‑step migration procedures, configuration adjustments, and the resulting performance improvements.

Build ToolsFrontend MigrationJavaScript
0 likes · 13 min read
Migrating a Webpack Project to Vite: A Golden Circle Approach
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 18, 2024 · Frontend Development

Step‑by‑Step Guide to Integrating ESLint into Vue 3 and Other Front‑End Projects

This article explains why ESLint is essential for front‑end code quality, describes its core features, and provides a detailed five‑step process for integrating ESLint into Vue 3 projects, followed by deeper integration techniques for Vite, Webpack, CI/CD pipelines, Git hooks, and IDEs, complete with practical code examples and troubleshooting tips.

CI/CDESLintVue
0 likes · 18 min read
Step‑by‑Step Guide to Integrating ESLint into Vue 3 and Other Front‑End Projects
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 28, 2024 · Frontend Development

Performance Optimization of a Vue2 + ElementUI Cloud Management Platform

This article describes how a legacy Vue2‑based cloud management system was profiled with Lighthouse and webpack‑bundle‑analyzer, then optimized through static asset compression, dead‑code removal, tree‑shaking, code‑splitting, async loading and server tweaks, achieving a three‑fold reduction in bundle size and a 13.6‑second improvement in first‑contentful‑paint time.

VueWebpackcode-splitting
0 likes · 11 min read
Performance Optimization of a Vue2 + ElementUI Cloud Management Platform
Java Tech Enthusiast
Java Tech Enthusiast
May 15, 2024 · Frontend Development

Optimizing Frontend Asset Delivery with Nginx Gzip and Webpack Compression

This guide shows how to speed up Vue‑based web apps by configuring Nginx to serve gzip‑compressed files dynamically and using the compression‑webpack‑plugin to pre‑compress JavaScript and CSS during the build, cutting bundle size from megabytes to a few, and halving page‑load times without extra server load.

NginxVueWebpack
0 likes · 5 min read
Optimizing Frontend Asset Delivery with Nginx Gzip and Webpack Compression
ByteDance Web Infra
ByteDance Web Infra
Apr 28, 2024 · Frontend Development

Announcing Module Federation 2.0: New Features, Documentation, and Future Roadmap

Module Federation 2.0, released by ByteDance Web Infra and the original author, introduces best‑practice documentation, runtime‑tool decoupling, TypeScript type safety, a devtool, manifest protocol, and cross‑tool support to make micro‑frontend module sharing more flexible and developer‑friendly.

Type SafetyWebpackdevtool
0 likes · 8 min read
Announcing Module Federation 2.0: New Features, Documentation, and Future Roadmap
ByteFE
ByteFE
Apr 16, 2024 · Frontend Development

Deep Dive into Webpack: Core Compilation Process, Plugins, Loaders, and Asset Emission

This article provides a comprehensive walkthrough of Webpack’s internal architecture, detailing the core JavaScript bundling workflow, the roles of Compiler and Compilation objects, the lifecycle of plugins and loaders, the parsing of modules into an AST, chunk creation, and the final emission of assets to the output directory.

Asset emissionChunk graphCompiler
0 likes · 27 min read
Deep Dive into Webpack: Core Compilation Process, Plugins, Loaders, and Asset Emission
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 7, 2024 · Frontend Development

My Frontend Engineering Practices and System

This article shares the author's practical experience with frontend engineering, covering topics such as project review, coding standards, monorepo tooling, custom CLI/SDK development, testing strategies, code review, bundling choices, monitoring, performance optimization, and knowledge consolidation for team empowerment.

MonorepoTestingWebpack
0 likes · 18 min read
My Frontend Engineering Practices and System