Webpack Config Generator

Visually configure entry/output, loaders, plugins, code splitting — generate webpack.config.js instantly
Zero Dependencies | No Signup, Client-Side · No Server Uploads

⚙️ Basic Settings

🔌 Loaders
🧩 Plugins
📦 Code Splitting (splitChunks)
🔧 Advanced Options
Click "Generate Config" to see results...

What Can the Webpack Config Generator Do?

The Webpack Config Generator is a free online tool that helps developers quickly generate webpack.config.js files through a visual interface. It supports entry/output configuration, loader selection, plugin management, code splitting strategies, and advanced settings. All processing is done locally in your browser — no Node.js or Webpack CLI installation required, and zero data uploads.

Core Features

  • Loader Management: One-click enable of babel-loader, ts-loader, css-loader, sass-loader, less-loader, postcss-loader, file-loader, and url-loader with auto-generated rules
  • Plugin Configuration: Support for HtmlWebpackPlugin, MiniCssExtractPlugin, DefinePlugin, CleanWebpackPlugin, ESLintPlugin, and ForkTsCheckerPlugin
  • Code Splitting: Visual splitChunks configuration with customizable chunk types, min size, cache groups, and vendor splitting
  • Source Maps: Multiple devtool options including eval-source-map, source-map, and hidden-source-map
  • Resolve Configuration: Custom path aliases and file extensions for simplified module imports

How to Use

1. Select mode (development/production) and target platform (web/node/browserslist)

2. Configure entry file path, output directory, output filename, and public path

3. Check the loaders your project needs (babel, TypeScript, CSS preprocessors, etc.)

4. Select required Webpack plugins and configure environment variables

5. Set up code splitting strategy and source map options

6. Click "Generate Config" to preview, then copy or download to your project root

Use Cases

Case 1: New Frontend Project Setup

Quickly generate Webpack configuration for new React/Vue projects, saving time on manual configuration and avoiding missing loaders or plugins.

Case 2: Migration from Webpack 4 to 5

Rebuild configurations when upgrading from Webpack 4 to 5, ensuring best practices and updated API usage.

Case 3: Learning Webpack

Use the visual interface to understand how Webpack configuration options work by adjusting parameters and observing the generated output in real time.

Case 4: Micro-Frontend Module Configuration

Generate independent Webpack configs for micro-frontend sub-applications with custom output.library and externals settings.

Technical Background

Webpack is the most popular frontend bundler. Core concepts: entry specifies the starting point; output defines where and how bundles are saved; loaders enable Webpack to process non-JS files (CSS, TypeScript, images); plugins perform broader tasks like HTML generation and environment variable injection. Webpack 5 introduces persistent caching, Module Federation for micro-frontends, and improved Tree Shaking. Proper splitChunks configuration extracts shared dependencies into separate chunks, reducing duplicate downloads and improving browser cache utilization.

❓ What can the Webpack Config Generator do?

Generates webpack.config.js files through a visual interface. Supports entry/output, loaders, plugins, code splitting, and source map configuration.

❓ What loaders are supported?

Supports babel-loader, ts-loader, css-loader, style-loader, sass-loader, less-loader, postcss-loader, file-loader, and url-loader.

❓ What plugins are supported?

Supports HtmlWebpackPlugin, MiniCssExtractPlugin, DefinePlugin, CleanWebpackPlugin, ESLintPlugin, and ForkTsCheckerPlugin.

❓ Does it support code splitting?

Yes. Configure splitChunks strategy including vendors/common chunk splitting and custom cache groups.

❓ Can I use the generated file directly?

Yes. The generated webpack.config.js is compatible with Webpack 5 and includes all necessary configuration.

❓ Does this tool upload my data?

No. All processing is done locally in your browser. No data is sent to any server.

Webpack Config Generator | No Signup, Client-Side · No Server Uploads

Feedback: dexshuang@google.com